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

Explanation: Numeric part is extracted (10) and added.

Explanation by: Roshan
Numeric part is extracted (10) and added.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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