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].".".$brother; ?>

Question: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].".".$brother; ?>

1.Sam is the brother of Bob and Bob) $brother

2.Sam is the brother of Bob and Bob)

3.$brother

4.Error


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!