Q. What will be the output?

Code:
$a = "10";
$b = 5;
echo $a + $b;
  • (A) 105
  • (B) 15
  • (C) Error
  • (D) 10+5
πŸ’¬ Discuss
βœ… Correct Answer: (B) 15
Explanation: PHP converts string '10' to integer and performs addition.
Explanation by: Roshan
PHP converts string '10' to integer and performs addition.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
46
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
87%
Success Rate