PHP Learning : Timestamp - Publik Talk

Breaking

An informative website for every one.

Post Top Ad

Post Top Ad

Wednesday, August 2, 2017

PHP Learning : Timestamp

Description:

The mktime() function returns the unix time stamp for a date.

The unix timestamp contains the no of seconds b\w the unix epoch (d/m/y)and the time specified.

Sample Code:

<?php

$tomorrow =mktime(0,0,0,date("m"),date("d")+1,date("y"));

echo "Tomorrow is ".date("y/m/d",$tomorrow);

?>

Output:


No comments:

Post a Comment

Post Top Ad