"/>
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", "banana");     echo (next($fruits));	     echo (next($fruits)); ?>
  2. A.
    orangebanana
    B.
    appleorange
    C.
    orangeorange
    D.
    appleapple

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    The next() function returns the array value residing at the position immediately following that of the current array pointer.


Be The First To Comment