shuffle

It shuffles the array

Example

<?php
echo “<pre>”;
$lan = array(“PHP”,”JSP”,”ASP”);
shuffle($lan);
print_r($lan);
?>

Output

Array
(
[0] => ASP
[1] => PHP
[2] => JSP
)

Share