I have written a script to print the following:
There are -4290 days (including today) until Christmas.
There are -4322 days (including today) until my birhtday.
The code is below:
Complete the functions required.
<?php
function compute_days($date){
}
function print_days($days, $event){
}
// declares the variable $days and assigns it to the result of the compute_days function,
// which has been sent the value of Christmas day.
$days = compute_days('12/25/2011');
// Sends the result of the previous function (held in the variable $day) and the event name to the print_days function to print to screen.
print_days($days, 'Christmas');
// overwrites the variable $days and again assigns it the result of the compute_days function,
// which this time has been sent the value of my next birthday.
$days = compute_days('11/23/2011');
// Sends the result of the previous function (held in the variable $day) and the event name to the print_days function to print to screen.
print_days($days, 'my birhtday');
?>