in_array
php
bool in_array(mixed $igla, array $tablica)Returns true if $igla is found in $tablica, or false otherwise. Comparison is strict.
Example:
php
$tablica = array(2, 4, 6);
$x = 2;
if (in_array($x, $tablica)) {
print("Number ".$x." is in the set");
}Result:
Number 2 is in the set