note 43048 deleted from language.variables by nlopess
| From: | nlopess@php.net | Date: | Fri, 24 Dec 2004 20:30:47 +0000 |
| Subject: | note 43048 deleted from language.variables by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-82267@lists.php.net to get a copy of this message | ||
Note Submitter: rmehta10 at mail dot com
----
To comment on:
stlawson AT sbcglobal DOT net
05-Jul-2002 06:47...post
that is not necessarliy true, it would depend if you were using functions
if a function such as void mystery(int & x)
is used then the variable x will also be changed
the example you gave in C++ is correct however that form is usually (or never) used
Php is however different and is well similar to java, everything in PHp is basically a pointer that
refrences a memory address, when some variable accesses that memory address and changes that item
then all variables refrencing that address will also be changed....that is in short wat explains the
confusion