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

### NAME

    element_of() - Return an element randomly from the array

### SYNOPSIS

    mixed element_of(mixed *arr);

### DESCRIPTION

    Returns a random element from an array.
