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

πŸ‘οΈ
29
Total Visits
πŸ“½οΈ
5 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
97%
Success Rate