Files
php_8/arrays/shuffle.php

8 lines
90 B
PHP

<?php
$arr = [1, 2, 3, 4, 5];
shuffle($arr);
echo '<pre>';
print_r($arr);
echo '</pre>';