Q:

What will be the output of the following PHP code?

belongs to collection: ARRAYS AND FUNCTIONS IN PHP MCQ

0

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

  1. like Volvo, Toyota and BMW
  2. I like Volvo, BMW and Toyota
  3. I like BMW, Volvo and Toyota
  4. I like Toyota, BMW and Volvo

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (d).I like Toyota, BMW and Volvo

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

ARRAYS AND FUNCTIONS IN PHP MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What will be the output of the following PHP code?... >>
<< Which function returns an array consisting of asso...