Add minutes to strtotime

php, strtotime

Solution

You can do this:

strtotime("+{$min} minutes");

Problem

If i have a varible ``` // in minutes $min = 40; ``` And i want to add it to a strotime formatted time ``` $strtTime = $strtotime('now') + $min; ``` whats the correct way to do this?

Original source