Home » PHP » PHP Arrays » Question
  1. Which function will return true if a variable is an array or false if it is not?
    1. in_array()
    2. do_array()
    3. this_array()
    4. is_array()
    5. None of these
Correct Option: D

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



Your comments will be displayed only after manual approval.