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;
?>

A. Error
B. Ajit is the friend of Rahul and Ats.
C. Nothing
D. Ajit Rahul Ats
E. None of these
Answer» B. Ajit is the friend of Rahul and Ats.


Discussion

No Comment Found

Related MCQs