Answers for "how to get seconds in x hours in php"

PHP
2

php redirect in seconds

header("refresh:5;url=wherever.php");
Posted by: Guest on March-16-2020
1

add seconds to datetime php

<?php 
$date = new DateTime();
echo $date->getTimestamp(). "<br>";
$date->add(new DateInterval('PT674165S')); // adds 674165 secs
echo $date->getTimestamp();
?>
Posted by: Guest on July-06-2020

Code answers related to "how to get seconds in x hours in php"

Browse Popular Code Answers by Language