here's an example of what i said:
a += 1;
}
function byRef(&$obj) {
echo $obj->a += 1;
}
///
$a = &new obj();
$a->byVal();
echo "";
echo $a->a;
echo "";
$a->byRef();
echo "";
echo $a->a;
?>
Regards Michael
"Michael Virnstein" <[EMAIL PROTECTED]
"Sascha Mantscheff" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
02051311162204.02523@pico">news:02051311162204.02523@pico...
> When I pass an object as a parameter to a function as "$this", this is an
> object reference (according to the docs).
it depends on the function. if you call it by valu
2 matches
Mail list logo