note 11754 added to Variables

From: Date: Tue, 06 Mar 2001 04:19:55 +0000
Subject: note 11754 added to Variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-11918@lists.php.net to get a copy of this message
I am just clarifying one point. <?php $foo = 25; $bar = &$foo; // This is a valid assignment. $bar = &(24 * 7); // Invalid; references an unnamed expression. function test() { return 25; } //As you mentioned the below statement is invalid but i tried out this that this is a valid statement. $bar = &test(); // Invalid. ?> http://www.php.net/manual/en/language.variables.php

« previous php.notes (#11918) next »