[ Content | View menu ]

PHP Insanity VII

Mark Mzyk April 14, 2008

I discovered an interesting bit of insanity in PHP while at work the other day. Define a function in PHP and make sure it has at least one argument, but that argument should not have a default. So the function should be something like: public function foo( $bar ) Not: public function foo( $bar=fubar ) […]