[PHP] Re: gloabl & reference behavior question?

2005-07-22 Thread Surendra Singhi
, so when these global variables in functions are assigned a new reference, it breaks the old reference and makes them refer to the new location, and the actual global variable is not affected. But in contrast, if the global variables in the function are assigned a new value, this does

[PHP] Re: gloabl & reference behavior question?

2005-07-21 Thread Surendra Singhi
"Ford, Mike" <[EMAIL PROTECTED]> writes: > On 20 July 2005 23:40, Surendra Singhi wrote: > Thanks, for explaining it. >> >> (1) >> When I try this code: >> > >> $var_global =" stuff"; >> function f1() { >>

[PHP] gloabl & reference behavior question?

2005-07-20 Thread Surendra Singhi
back its old value? Is it something which is not defined by the PHP language reference and is implementation specific? And in this case instead of giving the global variable some junk value or null value, the implementation decides to store the old values? Thanks. -- Surendra Singhi http