Q:

What will be the output of the following PHP code ?

0

What will be the output of the following PHP code ?

<?php
$cars = array("Volvo", "BMW", "Toyota");
echo "My car is a {$cars[0]}";
?>

  1. My car is a Volvo
  2. My car is a BMW
  3. My car is a Toyota
  4. Error

All Answers

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

(a).My car is a Volvo

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

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now