View Single Post
Old 06-15-2008, 09:23 PM   #4 (permalink)
Aaron
The Frequenter
 
Join Date: Dec 2007
Location: In my basement
Posts: 368
Thanks: 44
Aaron is on a distinguished road
Default

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.
__________________

I feel better hating IE.
Send a message via MSN to Aaron
Aaron is offline  
Reply With Quote