How To Add Hours To Current Date In Php?

Admin   PHP   82  2021-03-18 06:50:07

Hi Guys,

In this example,I will learn you add hours to current date in php.you can easy and simply add hours to current date in php.

we will show add hours in current date php.this tutorial will give you example of add hours to current date using php.

Example:

 

<?php

$date = date('d-m-Y H:i:s', strtotime("+1 hour"));

echo ($date);

?>

Output:

 

23-12-2020 11:32:25

It will help you..