Re: [PHP-DEV] array_reverse

2003-12-14 Thread Michael Walter
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

[PHP-DEV] array_reverse

2003-12-13 Thread Felipe Lopes
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); } Is it possible to make a function work both ways? $array = array_reverse($array); and array