11
What will be the output of the following PHP code ?
<?php
$color = "red";
$color = "green";
echo "$color";
?>
Answer & Solution
Answer: Option
B
Solution:
The variable contains the last value which has been assigned.