zro@rtv
12-21-2006, 06:20 AM
quick question, sry if its stupid.
I can't do this right?
class Myclass{
var $bob;
function myFunc($foo = $this->bob){
echo $foo;
}
}
so im doing this:
class Myclass{
var $bob;
function myFunc($foo = 'unset'){
if ($foo == 'unset')
$foo = $this->bob;
echo $foo;
}
}
]
Is this appropriate? or am i crazy, or stupid, or thinking about this all wrong?
THANKS IN ADVANCE!
I can't do this right?
class Myclass{
var $bob;
function myFunc($foo = $this->bob){
echo $foo;
}
}
so im doing this:
class Myclass{
var $bob;
function myFunc($foo = 'unset'){
if ($foo == 'unset')
$foo = $this->bob;
echo $foo;
}
}
]
Is this appropriate? or am i crazy, or stupid, or thinking about this all wrong?
THANKS IN ADVANCE!