Programming Language › Arrays in PHP MCQ › Question #2387
Single Choice Not Set

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

ID: #2387 Arrays in PHP MCQ 2,149 views
Question Info
#2387Q ID
Not SetDifficulty
Arrays in PHP MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A this_array() ✔ ✖
  • B is_array() ✔ ✖
  • C do_array() ✔ ✖
  • D in_array() ✔ ✖
Correct Answer

Explanation

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

Share This Question

Challenge a friend or share with your study group.