$date1 = date('Y-m-d');
$date2 = '2006-07-01';
$days = (strtotime() - strtotime()) / (60 * 60 * 24);
echo "Number of days since '2008-01-01': $days";
Learn PHP, PHP Tutorial, PHP Code, PHP, MySQL, MySQL Database, SQL, SQL Code, HTML, Javascript, JQuery, Ajax, Wordpress
No comments:
Post a Comment