1.

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

Answer»

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.



Discussion

No Comment Found