2 /* Prototype : bool checkdate ( int $month , int $day , int $year )
3 * Description: Validate a Gregorian date
4 * Source code: ext/date/php_date.c
8 echo "*** Testing checkdate() : error conditions ***\n";
10 //Set the default time zone
11 date_default_timezone_set("America/Chicago");
18 echo "\n-- Testing checkdate() function with more than expected no. of arguments --\n";
19 var_dump (checkdate($arg_0, $arg_1, $arg_2, $extra_arg));
21 echo "\n-- Testing checkdate() function with less than expected no. of arguments --\n";
22 var_dump (checkdate());
23 var_dump (checkdate($arg_0));
24 var_dump (checkdate($arg_0, $arg_1));