note 10404 added to Returning References

From: Date: Tue, 02 Jan 2001 04:57:44 +0000
Subject: note 10404 added to Returning References
Groups: php.notes 
Request: Send a blank email to php-notes+get-9248@lists.php.net to get a copy of this message
Apparently returning lists via reference doesn't work. For example, the following gives a parse error function &junk($param) { ... return array($garbage, $wreck); } list($result1, $result2) = &junk($somevar); http://www.php.net/manual/language.references.return.php

« previous php.notes (#9248) next »