Q. What will be the output of the following PHP code?
Code:
<?php $color = "maroon"; $var = $color[2]; echo "$var"; ?>
β
Correct Answer: (C)
r
<?php $color = "maroon"; $var = $color[2]; echo "$var"; ?>
You must be Logged in to update hint/solution