---
layout: doc
title: arrays / shuffle
---
# shuffle

### NAME

    shuffle() - Rearrange the elements in the array in random order

### SYNOPSIS

    mixed *shuffle(mixed *arr);

### DESCRIPTION

    Shuffle the array and return.
