Shuffle Array Elements using PHP

shuffle function

<?php

$data = [10, 3, 17, 50, 15];
shuffle($data);

print_r($data);

Leave a Comment

Cancel reply

Your email address will not be published.