Thread
:
Function Argument Defaults
View Single Post
#
2
01-10-2006, 07:56 PM
ApothiX
Okiesmokie
Join Date: May 2004
Posts: 1,447
I don't think there was intent for default arguments to be set o_O
PHP Code:
function
Foo
(
bar
) {
if(
bar
==
""
)
bar
=
"Default Text"
;
}
You could just use that to set default arguments.
__________________
[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys.
")
ApothiX
View Public Profile
View GraalOnline Profile
Find all posts by ApothiX