Vidyalelo
PHP · Q4

Arrays

Programming · PHP · question 4

Q4

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

A.
this_array()
B.
is_array()
Answer
C.
do_array()
D.
in_array()

Answer: Option B

Solution

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