Generation

generate functionSat, 12 Nov 2022

test for invalid month year day

function check_date($year, $month, $day) { if (is_numeric($year) && is_numeric($month) && is_numeric($day)) { return checkdate($month, $day, $year); } return false; } check_date(2012, 12, 21)

Questions about programming?Chat with your personal AI assistant