Q:

What will be the output of the following PHP code?

belongs to collection: ARRAYS AND FUNCTIONS IN PHP MCQ

0

What will be the output of the following PHP code?

<?php
$names = array("Sam", "Bob", "Jack");
echo $names[0] . "is the brother of " . $names[1] . " and " . $names[1] . ".";
?>

  1. Sam is the brother of Bob and Jack
  2. Sam is the brother of Jack and Bob
  3. Sam is the brother of Jack and Bob
  4. Error

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (c).Sam is the brother of Jack and Bob

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

ARRAYS AND FUNCTIONS IN PHP MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What will be the output of the following PHP code?... >>
<< What will be the output of the following PHP code?...