Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

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

  2. A.

     this_array()

    B.

     is_array()

    C.

     do_array()

    D.

     in_array()

    View Answer

    Workspace

    Answer : Option B

    Explanation :

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


Be The First To Comment