Using which PHP function can you check if several dates are valid Gregorian dates?
Explanation
The checkdate() function is used to validate a Gregorian date.
";
var_dump(checkdate(2,29,2003));
echo "
"; var_dump(checkdate(2,29,2004)); ?>
Result:
bool(false) 
bool(false) 
bool(true)

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback