Answers for "unixtimestamp last year php"

PHP
0

php date to seconds

<?php
$str = 'Tue Dec 15 2009';
$timestamp = strtotime($str);
echo $timestamp;
//output: 1260831600
?>
Posted by: Guest on May-23-2020
2

php time

<?php
$t=time();
echo($t . "<br>");
echo(date("Y-m-d",$t));
?>
Posted by: Guest on June-24-2020

Browse Popular Code Answers by Language