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)

Want to kickstart your project?Use the new AI Studio to create your code