Re: array_reverse
| From: | Michael Walter | Date: | Sun, 14 Dec 2003 12:41:45 +0000 |
| Subject: | Re: array_reverse | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-6440@lists.php.net to get a copy of this message | ||
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