How can we know the number of days between two given dates using PHP?
Thursday, February 4, 2010 23:38Posted in category PHP Interview Questions
No Comments
The start date and end date can be first found as shown below:
$date1= strotime($start_date); $date2= strotime($end_date); $date_diff = (($date1)- ($date2)) / (60*60*24)
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.


