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

πŸ‘οΈ
31
Total Visits
πŸ“½οΈ
6 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
96%
Success Rate