mktime and strtotime
mktime function used to get time stamp for a date.
It gets hour,minute,second,month,day,year as integer and covert it to time.
Using strtotime, we convert English textual datetime description into time
Syntax:
int mktime ( int hour, int minute, int second, int month, int day, int year [, int is_dst])
int strtotime ( string time [, int now])
Example:
<?php
$day = mktime (0,0,0,3,2,2000);
echo “Date is :”.date(”M-d-Y”,$day);
?>
Output:
Date is : Mar-02-2000
