Simple arithmetic:
$date1 = date('Y-m-d');
$date2 = '2006-07-01';
$days = (strtotime() - strtotime()) / (60 * 60 * 24);
echo "Number of days since '2006-07-01': $days";
Subscribe to:
Post Comments (Atom)
Complete list of questions and answers about PHP MySQL. Get prepared for better interview.
Mobile Fun |
Download Free Mobile Phone Ringtones |
Online Games |
|
Free Live Chat Rooms | ||||||||||||
|
No comments:
Post a Comment