"/>
Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

  1. What will be the output of the following PHP code ?

    <?php

    $cars = array("Volvo", "BMW", "Toyota");

    print $cars[2];

    ?>

  2. A.

     Volvo

    B.

     BMW

    C.

     Toyota

    D.

     Error

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    Print statement can be used to output a specific array member.


Be The First To Comment