Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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

a) this_array()
b) is_array()
c) do_array()
d) in_array()

Answer: b
Explanation: The function is_array() is an inbuilt function in PHP which is used to check whether a variable is an array or not. Its prototype follows: boolean is_array(mixed variable).

Join The Discussion