πŸ“Š PHP
Q. What will be the output?
Code:
$a = 10;
$b = '20abc';
echo $a + $b;
  • (A) 30
  • (B) 1020abc
  • (C) Error
  • (D) 20
πŸ’¬ Discuss
βœ… Correct Answer: (A) 30

Explanation: PHP extracts numeric part and performs addition.

Explanation by: Roshan
PHP extracts numeric part and performs addition.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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