4 ms·
The example explicitly shows that optional parameters are not required: if (!$p->isOptional() and !isset($arr[$p->name])) throw new MissingArgumentException
by melvinmt 14y ago
The example explicitly shows that optional parameters are not required:
if (!$p->isOptional() and !isset($arr[$p->name])) throw new MissingArgumentException