Shuffle the elements in a given array

array:shuffle(ARRAY $array) : ARRAY

array:shuffle([1,2,3])
#> [ 1, 3, 2 ]

# note: this function removes the keys
array:shuffle(["name" => 'bar', 'email' => 'foo'])
#=> [ "foo", "bar" ]

Copyright ©2013-2022 SunSed®. All rights reserved.