Menu Samaritan's Purse

SHUFFLE

Shuffle an array

SYNTAX

shuffle ( array &$array ) : bool

PARAMETERS

array

The array.

RETURN

Returns TRUE on success or FALSE on failure.

EXAMPLES

ARRAY

Array
(
    [0] => 6
    [1] => 14
    [2] => 2
    [3] => 9
    [4] => 11
    [5] => 1
    [6] => 7
    [7] => 12
    [8] => 18
    [9] => 8
    [10] => 5
    [11] => 3
    [12] => 15
    [13] => 13
    [14] => 4
    [15] => 19
    [16] => 20
    [17] => 10
    [18] => 16
    [19] => 17
)

RETURN

true

PHP