Quote:
In most cases your PHP4 classes will work unchanged under PHP5.
And while PHP5 do longer requires the use of & for passing an object by reference,
it does not hurt to do so.
|
Is object the only thing passed by reference?
or are primitives also passed by reference?
If so then I suspect that the following code
does not work since $foo is initialized in the
parameter (it's not referenced)?
PHP Code:
function foo($foo = "")
{
echo $foo;
}