[nycphp-talk] Pass-by-value and lazy copy
Daniel Convissor
danielc at analysisandsolutions.com
Sat Nov 24 19:15:11 EST 2007
Hi Gary:
On Thu, Nov 22, 2007 at 08:34:02AM -0500, Gary Mort wrote:
> So, in the pass by reference talk, it was pointed out that if you do:
>
> $a = 100;
> $b = 100;
> // At this point in time, $a and $b are still using the same memory to
> store their data
Nope. They have two separate memory assignments. But they'll be the
same if you do the following:
$a = 100;
$b = $a;
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
More information about the talk
mailing list