"/>
Home / CSE MCQs / PHP MCQs :: Discussion

Discussion :: PHP MCQs

  1. What will be the output of the following PHP code?
    < ?php      $fruits = array ("apple", "orange", array ("pear", "mango"),     "banana");     echo (count($fruits, 1)); ?>
  2. A.
    3
    B.
    4
    C.
    5
    D.
    6

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    The array entity holding pear and mango is counted as an item, just as its contents are.


Be The First To Comment