In this article, we will learn how to add minutes to the current time in PHP its very useful when working on a date and time functionality


let's add 30 minutes to the current time. if you want to another value you can replace 3o to others.



//Add 30 Minutes in curent date and time
$date = date('d-m-Y H:i', strtotime("+30 min"));
echo ($date);


27-01-2021 12:00