function test_valid_date($input) { return !empty($input["begin"]) && !empty($input["end"]) && strtotime($input["begin"]) < strtotime($input["end"]); }