S

Sandeep • 6.47K Points
Tutor III

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
  • Correct Answer - Option(A)
  • Views: 156
  • Filed under category PHP

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics