Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The example explicitly shows that optional parameters are not required:

   if (!$p->isOptional() and !isset($arr[$p->name])) throw new MissingArgumentException


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: