How to use time in PHP

This article describe about time() Function in PHP.
  • 1633

time() Function

This function return the current time as Unix timestamp.

Syntax

time(void)

 

Parameter Description
void Optional.

Example

<html>
<body>
<?php
$t=time();
echo($t . "<br />");
echo(date("D F d Y",$t));
?>
</body>
</html>

 

Output


pic14.jpg

You may also want to read these related articles Click here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.