Home / Programming MCQs / PHP MCQs / Question

S

Sandeep • 6.42K 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

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.