Mecha CMS

Helper functions.

shake

Randomize array order.

2.2.0

shake(array $data, $preserve_key = true);
shake(array $data, callable $fn);

Example:

$A = shake([1, 2, 3, 4, 5]);