note 47299 added to language.variables

From: Date: Wed, 10 Nov 2004 16:45:48 +0000
Subject: note 47299 added to language.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-80357@lists.php.net to get a copy of this message
The following example would copy the array twice; once from $a to $b and once from $b to $c. $a = array(0, 1, 2); $b = $a; $c = $b; This would return a copy of the array defined in function f(). function f() { return array(0, 1, 2); } $a = f(); Does that mean that this would copy the array twice, once in f() and once in g()? function f() { return array(0, 1, 2); } function g() { return f(); } $a = g(); ---- Manual Page -- http://www.php.net/manual/en/language.variables.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47299 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47299&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47299&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47299&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47299&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47299&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47299&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47299&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#80357) next »