πŸ“Š PHP
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

πŸ‘οΈ
6
Total Visits
πŸ“½οΈ
8 d ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
85%
Success Rate