πŸ“Š PHP
Q. What will be the output of the following PHP code?
Code:
<?php
$color = "maroon";
$var = $color[2];
echo "$var";
?>
  • (A) a
  • (B) $var
  • (C) r
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (C) r

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
194
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Santosh Mishra
Publisher
πŸ“ˆ
86%
Success Rate