Home > PHP > shuffle

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
)

EmailFacebookLinkedInMySpaceDiggTumblrStumbleUponShare
Beginner's Guide....
Categories: PHP Tags: , ,
Comments are closed.

Switch to our mobile site