πŸ“Š PHP
Q. What will be the output of the following PHP code?
Code:
<?php
$var = "YELLOW";
$var1 = $var[5];
echo "$var1";
?>
  • (A) Y
  • (B) E
  • (C) L
  • (D) W
πŸ’¬ Discuss
βœ… Correct Answer: (D) W

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
168
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Neha Sharma
Publisher
πŸ“ˆ
86%
Success Rate