<?php
$array = array(
"koen",
"speelmeijer",
array(
17,
18
)
);
var_dump( array_reverse( $array ) );
var_dump( array_reverse( $array , true ) );
/*output:
array(3) {
[0]=> array(2) {
[0]=> int(17) [1]=>
int(18)
}
[1]=> string(11) "speelmeijer"
[2]=> string(4) "koen"
}
array(3) {
[2]=> array(2) {
[0]=> int(17)
[1]=> int(18)
}
[1]=> string(11) "speelmeijer"
[0]=> string(4) "koen"
}
*/
?>
|