Nuno Lopes schrieb: > Currently PHP accepts more parameters to a function than the required. > In English: > <? > function a($b) {} > a(1,2,3); > ?> > > PHP accepts this and generates no errors.
This is expected behaviour in PHP! Since PHP does not offer true overloading of method headers (multiple methods or functions with the same name but different parameter lists) this is badly needed. AllOLLi ____________ Bender: "We're making beer. I'm the brewery." Dwight: "I heard alcohol makes you stupid." Fry: "No I'm... doesn't." [Futurama 312] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php