Please see this code, where I pass more parameters than expected to a custom function:
error_reporting(E_ALL);
ini_set("display_errors", 1);
daidai("asassa", "asgfasfas", "asassa");
function daidai($aa)
{
echo $aa;
}
This doesn't emit an error at all, while I was expecting Warning: function daidai() expects at most 1 parameter, 3 given
What puzzles me is that this emits said error as expected:
$Odate=new DateTime();
$sfasfasf=$Odate->setTime("23", "59", "30", "unexpected");
Why?