"> What will be the output of the following PHP code?<?php$Flower

Home » PHP » PHP Arrays » Question
  1. What will be the output of the following PHP code?
    <?php
    $Flower = array ("Rose", "Lily ", "Sunflower");
    echo (next($Flower));
    echo (next($Flower));
    ?>
    1. Sunflower
    2. Lily
    3. Rose
    4. Sunflower Lily
    5. Lily Sunflower
Correct Option: E

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



Your comments will be displayed only after manual approval.