- print_r: documentation ( source)
- shuffle: documentation ( source)
<?php
$list = [1, 2, 3, 4, 5, 6, 7, 8, 9];
shuffle($list);
print_r($list);
// echo $list;
// foreach($list as $key => $value){
// print "キー(\$key) : {$key} 値(\$value) : {$value}<br/>\n";
// }
?>