Menu
Riverview Church

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] => 11
    [1] => 13
    [2] => 12
    [3] => 15
    [4] => 17
    [5] => 18
    [6] => 10
    [7] => 7
    [8] => 5
    [9] => 1
    [10] => 3
    [11] => 16
    [12] => 20
    [13] => 6
    [14] => 19
    [15] => 9
    [16] => 8
    [17] => 4
    [18] => 2
    [19] => 14
)

RETURN

true

PHP