. Advertisement .
..3..
. Advertisement .
..4..
Php is new to me. Today, I want to learn more about “add hours to current date in php”. Can you share with me some experiences or examples here?
Here is a suggestion for you$minutes_to_add = 5;
$time = new DateTime('2011-11-17 05:05');
$time->add(new DateInterval('PT' . $minutes_to_add . 'M'));
$stamp = $time->format('Y-m-d H:i');
I hope this helps