Q. What will be the output of the following PHP code?

Code:
<?php
$math = "25 students";
$Science = 35;
$math = $math + $Science;
echo "$math";
?>
  • (A) 25
  • (B) 35
  • (C) Error
  • (D) 60
πŸ’¬ Discuss
βœ… Correct Answer: (D) 60

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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