πŸ“Š PHP
Q. What will be the output of the following PHP code ?
Code:
<?php
$cars = array("Volvo", "BMW", "Toyota");
echo "My car is a {$cars[0]}";
?>
  • (A) My car is a Volvo
  • (B) My car is a BMW
  • (C) My car is a Toyota
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (A) My car is a Volvo

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
215
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Neha Sharma
Publisher
πŸ“ˆ
82%
Success Rate