reversing an array

This example shows how to reverse the contents of an array using the array_reverse function

<html>
<body>
<?php
//declare an array
$list = array("a","b","c","d","e");
//print the array
print_r ($list);
print "<br>";
//reverse the array and print the array contents again
print_r (array_reverse($list));
?>

</body>
</html>