PHP reverse array

In order to reverse the order of the items in an array, use the following code:

$my_array = array("1", "2", "3");

$my_array = array_reverse($my_array);