Loading…

What is the use of is_array() and in_array()?

is_array() : It is an inbuilt function used in PHP. It is used to check whether a variable is an array or not.

in_array() : It is used to check whether a given value exists in an array or not. It returns TRUE if the value is exists in array, and returns FALSE otherwise.

Suggest An Answer

No suggestions avaliable!

Latest post from PHP Arrays

Ask Question