Create a simple 'birthday countdown' script, the script will count the number of days between current day and birthday
- برمجة بي اتش بي
- 2021-09-09
- mhanasmh00489829403
الأجوبة
<?php
$target_days = mktime(0,0,0,12,31,2013);// modify the birth day 12/31/2013
$today = time();
$diff_days = ($target_days - $today);
$days = (int)($diff_days/86400);
print "Days till next birthday: $days days!"."\n";
?>
Sample Output:
Days till next birthday: -1143 days!
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال