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