shuffle an array

This example shows how to shuffle an array using the shuffle function, this sort of routine is particularly useful for card games.

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

</body>
</html>