shuffle.php : shuffle « Data Structure « PHP






shuffle.php

 
<?php

$cards = array("a","b","c","d","e","f","g","h");

shuffle($cards);
print_r($positions);

?>
  
  








Related examples in the same category

1.Randomizing an Array Using shuffle(), kshuffle(), and array_rand()
2.shuffle( ) function randomizes the position of the elements