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
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