Reverses the order of the items in an array. reverse cannot reverse a string.
plums, peaches, oranges, apples
reverse cannot be used directly on a string, but you can split a string into an array, reverse the array, and rejoin it by chaining together filters:
.moT rojaM ot lortnoc dnuorG
Last updated: Sun 01 Oct, 2017