Posted On: Feb 22, 2018
Calculating days between two dates in PHP
<?Php $date1 = date('Y-m-d'); $date2 = '2015-10-2'; $days = (strtotime($date1)-strtotime($date2))/(60*60*24); echo $days; ?>
Never Miss an Articles from us.
In PHP == is equal operator and returns TRUE if $a is equal to $b after type juggling and === is Identical operator and return TRUE if $a is equal to $b, and they are of the same data type...