|
array_reverseReturn an array with elements in reverse order Description
array array_reverse
( array
$array
[, bool $preserve_keys = false
] )
Takes an input Parameters
Return ValuesReturns the reversed array. Changelog
Examples
Example #1 array_reverse example
<?php The above example will output: Array ( [0] => php [1] => 4 [2] => Array ( [0] => green [1] => red ) ) Array ( [0] => Array ( [0] => green [1] => red ) [1] => 4 [2] => php ) Array ( [2] => Array ( [0] => green [1] => red ) [1] => 4 [0] => php ) See Also
|