---
layout: doc
title: contrib / element_of.pre
---
# element_of

### NAME

    element_of() - returns random elememt of given array

### SYNOPSIS

    mixed element_of(mixed *arr);

### DESCRIPTION

    returns random elememt of given array
