I am trying to add 15minutes to the current time. I am using the following code:
$curtime = date('H:i');
$newtime = $curtime + strtotime('+15 minutes');
But this still only prints the current time and not the current time + 15.
I want it to add 15mins like so
e.g. If the time is 12:30 the time after addition will be 12:45
Thanks.
Close, you want: