note 43048 added to language.variables

From: Date: Tue, 08 Jun 2004 04:18:05 +0000
Subject: note 43048 added to language.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-70483@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/language.variables.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43048 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43048&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43048&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70483) next »