Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Randomize the order of the elements in the array:
SUBMITTED BY:
henry1874w
DATE:
June 27, 2017, 5:24 p.m.
FORMAT:
Text only
SIZE:
138 Bytes
Raw
Download
Tweet
HITS:
655
Go to comments
Report
<?php
$my_array = array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow","e"=>"purple");
shuffle($my_array);
print_r($my_array);
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus