Write a PHP script to calculate number of days between two dates
- برمجة بي اتش بي
- 2021-09-09
- mhanasmh00489829403
الأجوبة
<?php
$to_date = time(); // Input your date here e.g. strtotime("2014-01-02")
$from_date = strtotime("2012-01-31");
$day_diff = $to_date - $from_date;
echo floor($day_diff/(60*60*24))."\n";
?>
Sample Output:
1988
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال