Home » PHP » PHP Arrays » Question
  1. What will be the output of the following PHP code?
    <?php
    $Student = array("Ajit", "Rahul", "Ats");
    echo $names[0] . "is the friend of " . $names[1] . " and " . $names[1] . ".".$friend;
    ?>
    1. Error
    2. Ajit is the friend of Rahul and Ats.
    3. Nothing
    4. Ajit Rahul Ats
    5. None of these
Correct Option: A

$brother undeclared.



Your comments will be displayed only after manual approval.