PHP In Array Syntax
Following is the syntax of the in_array() function:
Where:
- search: specifies the element or value to look up in the given array
- array: specifying an array to search for a value
- mode (Optional): specifies the mode to perform the search. If set to "TRUE", the in_array() function searches for the search-string and specific type in the array. The default value for this parameter is "FALSE".