Giles Roadnight wrote:
Hello
If I defined a function with 4 parameters but only pass 3 I get an
error. Is there anyway around this?
I want to be able to set the missing parameter to a default value if it
is not passed which works ok but How do I get rid of the error message?
Thanks
Giles Roadnight
http://giles.roadnight.name



It's in the manual.

function foo($aaa, $bbb, $ccc, $ddd="")

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to