Felipe Lopes wrote:
Hi there!

What you guys think about make array_reverse() a variable referenced function. I mean something like:

function new_array_reverse(&$array){

$array = array_reverse($array);

}
-1 from me (supposed my vote counts ;), as this works pretty much against functional style (which you often use when dealing with array_*).

Is it possible to make a function work both ways?

$array = array_reverse($array);

and

array_reverse($array);
I doubt that.

Cheers,
Michael

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to