06-15-2008, 09:23 PM
|
#4 (permalink)
|
|
The Frequenter
Join Date: Dec 2007
Location: In my basement
Posts: 368
Thanks: 44
|
Why can't we just put optional parentheses in brackets like php.net?
myfunction(Taco,[$beans],[$rice])
mm I'm hungry now.
To answer your question
make it equal something in the function call like demonstrated above.
Code:
function myfunction($myarg = 'default')
If you specify a parameter, it will overrule what you put in for defaults.
|
|
|