time value in php code example
Example 1: time php
<?php
/* Unix Timestamp */
$timestamp = time();
echo $timestamp . "<br>";
echo date("d/m/Y", $timestamp);
?>
Example 2: php time
<?php
$t=time();
echo($t . "<br>");
echo(date("Y-m-d",$t));
?>
<?php
/* Unix Timestamp */
$timestamp = time();
echo $timestamp . "<br>";
echo date("d/m/Y", $timestamp);
?>
<?php
$t=time();
echo($t . "<br>");
echo(date("Y-m-d",$t));
?>