ExamVeda
Login
Home
This question belongs to PHP Arrays
Arrays
?

What will be the output of the following PHP code?
<?php
$cars = array("Volvo", "BMW", "Toyota");
echo "I like " . $cars[2] . ", " . $cars[1] . " and " . $cars[0] . ".";
?>

Answer & Solution
Correct Answer: Option D
The order of elements defined.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.