Discussion Forum : Php Arrays
Question - What will be the output of the following PHP code?$names = array("Sam", "Bob", "Jack");echo $names[0] . "is the brother of " . $names[1] . " and " . $names[1] . ".";
Options:
A .  Sam is the brother of Bob and Jack
B .  Error
C .  Sam is the brother of Bob and Bob)
D .  Sam is the brother of Jack and Bob)
Answer: Option C

Submit Your Solution Below and Earn Points !
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *