Examveda
Examveda

Which function will return true if a variable is an array or false if it is not?

A. this_array()

B. is_array()

C. do_array()

D. in_array()

Answer: Option B

Solution(By Examveda Team)

A built-in function, is_array(), is available for testing an array. Its prototype follows: boolean is_array(mixed variable).

This Question Belongs to PHP >> Arrays

Join The Discussion

Related Questions on Arrays