?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$color = "red";
$color = "green";
echo "$color";
?>
<?php
$color = "red";
$color = "green";
echo "$color";
?>
Answer & Solution
Correct Answer:
Option
B
The variable contains the last value which has been assigned.
Join the Discussion
Login to post a comment or share your explanation.
Login