The in_array() function searches an array for a specific value.
This Function Return True if the elememt is in array otherwise it will return False.
| Parameter | Description |
|---|---|
| search | Required. Specifies the what to search for |
| array | Required. Specifies the array to search |
| type | Optional. If this parameter is set to TRUE, the in_array() function searches for the search-string and specific type in the array. |
Search for the value "Glenn" in an array and output some text: