in_array < PHP
The in_array function checks if a value exists in an array and returns a boolean
$states = array("Texas", "Michigan", "Alabama", "Idaho");
$statesIn = in_array("Idaho", $states);
echo $statesIn;
// 1
The in_array function checks if a value exists in an array and returns a boolean
$states = array("Texas", "Michigan", "Alabama", "Idaho");
$statesIn = in_array("Idaho", $states);
echo $statesIn;
// 1