Posted by d43m0n AT shaw DOT ca on 09/21/06 22:29
> two things:
> that will only echo 'Hello world' once not 11 times; and
> $bar is NOT destroyed by $foo = &$bar;
> instead a reference to $bar is created and $bar still exists with both $bar
> and $fo returning the exact same contents.
My Bad, my script said otherwise, I just simply had the angle on the
wrong face.
And I could have sworn by placing the '&' sign infront, that it
replaces the value... oh well, simply use
$bar = true;
$foo = $bar;
unset($bar);
[Back to original message]
|