- var_dump: documentation ( source)
- mktime: documentation ( source)
<?php
declare(strict_types=1);
function my_mktime($hour, $min, $sec, $month, $day, $year)
{
try {
return mktime($hour, $min, $sec, $month, $day, $year);
} catch (EngineException $ex) {
return false;
}
}
var_dump(my_mktime(0, 0, 0, null, null, null));