S
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] . ".";
?>
$colors = array("Blue", "Orange", "Black");
echo "I like " . $colors[2] . ", " . $colors[1] . " and " . $colors[0] . ".";
?>
- Correct Answer - Option(A)
- Views: 156
- Filed under category PHP
Discusssion
Login to discuss.