Q. What is the result of the following PHP code?

Code:
<?php

    $colors = array("Blue", "Orange", "Black");

    echo "I like " . $colors[2] . ", " . $colors[1] . " and " . $colors[0] . ".";

?>
  • (A) I like Black, Orange and Blue.
  • (B) I like Blue, Orange and Black.
  • (C) I like Orange, Blue and Black.
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) I like Black, Orange and Blue.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
238
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Sandeep
Publisher
πŸ“ˆ
96%
Success Rate