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] . ".";
?>
- Sam is the brother of Bob and Jack
- Sam is the brother of Jack and Bob
- Sam is the brother of Jack and Bob
- Error
(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