Re: Reference return buggy notice?

From: Date: Sat, 20 Oct 2007 17:39:30 +0000
Subject: Re: Reference return buggy notice?
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-263450@lists.php.net to get a copy of this message
Martin Marques wrote:
Stut escribió:
Say you have a function that builds a fairly large array and then returns it. If you just return it as usual PHP will make a copy of that array and therefore use twice the amount of memory than it needs to. References also provide a way to return more than one variable from a function, but I doubt many PHP developers come across the need to do that.
How can that be done with references?
http://dev.stut.net/php/returnreference.php -Stut -- http://stut.net/

« previous php.general (#263450) next »