strtotime add 1 second code example Example: strtotime add 1 hour $my_date_time = date("Y-m-d H:i:s", strtotime("+1 hours"))