Related Functions

in_array

PHP 4.0+

Searches an array for a specific value and returns true if found, performing either loose or strict comparison based on the optional strict parameter.

Description

The in_array() Searches an array for a specific value and returns true if found, performing either loose or strict comparison based on the optional strict parameter.

Example