function

contains . array . sncode

VERSIONlatest Checks if a value exists in an array

contains

NAME

contains Checks if a value exists in an array.

SYNOPSIS

contains(array, element)

DESCRIPTION

Checks if a value exists in an array.

RETURN

This function returns true or false depending if the element exists in the array.

EXAMPLES

        contains([1,3,4], 4); //returns true

AUTHOR

Written by Thomas Rahn, <thomas@sednove.com>

VERSION

Available from version 5.58