Return an array with elements in reverse order
<? $input = array ("php", 4.0, array ("green", "red")); $result = array_reverse ($input); ?>
1. | Concisely reversing a string by word | ||
2. | Reversing an Array Using array_reverse() | ||
3. | array_reverse() function reverses the order of the array elements. | ||
4. | Reversing a string by word |