?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$cars = array("Volvo", "BMW", "Toyota");
print $cars[2];
?>
<?php
$cars = array("Volvo", "BMW", "Toyota");
print $cars[2];
?>
Answer & Solution
Correct Answer:
Option
C
Print statement can be used to output a specific array member.
Join the Discussion
Login to post a comment or share your explanation.
Login