| Re: Overloaded Functions in PHP? bob, no overloaded functions in PHP, but you can use "defaults"
function hello($var1,$var2='hi'){
if($var2=="hi") print "hello:";
print $var1;
}
hello('dude'); prints "hello: dude"
hello('dude','hi'); prints "hello: dude"
hello('dude','something'); prints "dude" |