Q. What will be the output of the following PHP code ?

Code:
<?php
$cars = array("Volvo", "BMW", "Toyota");
print $cars[2];
?>
  • (A) Volvo
  • (B) BMW
  • (C) Toyota
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (C) Toyota

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
88617
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ravinder Singh
Publisher
πŸ“ˆ
97%
Success Rate