Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

time function in php

Return the current time as a Unix timestamp, then format it to a date:
<?php 
/* Unix Timestamp */
$timestamp = time();
echo $timestamp . "<br>";
echo date("d/m/Y", $timestamp);
?>
 
PREVIOUS NEXT
Tagged: #time #function #php
ADD COMMENT
Topic
Name
8+3 =