Re: Reference return buggy notice?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux