View Single Post
Old 05-07-2009, 01:17 AM   #15 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

PHP Code:
<?php

//VAR200 LOADED BEFORE ANYTHING ELSE

$var200 'WiredFlame.com';

//VAR100 USING PASS-BY-REFERENCE TO ACCESS $var200 value.

$var100 =& $var200;

echo 
"Var100 is: $var100 <br />";
echo 
"Var200 is: $var200 <br />";

//NOW WE CHANGE THE VALUE OF VAR100

$var100 'TalkPHP.com'


echo 
"Var100 is now: $var100 <br />";
echo 
"Var200 is now: $var200 <br />";


?>
Output:

Var100 is: WiredFlame.com
Var200 is: WiredFlame.com


Var100 is now: TalkPHP.com
Var200 is now: TalkPHP.com


I'm just going to have to accept that this works the way it does. I know I pretty much understand your explanation with the way RAM stores the values.

Something just isn't clicking for me...I can go on and just let it be...but my OCD might kick in where it starts to bother me...

LOL...
allworknoplay is offline  
Reply With Quote