πŸ“Š PHP
Q. What is the output of echo 2 + '2 cars'; ?
  • (A) 4
  • (B) 22 cars
  • (C) error
  • (D) 2 cars2
πŸ’¬ Discuss
βœ… Correct Answer: (A) 4

Explanation: PHP converts the string to number until non-numeric character and adds them.

Explanation by: Rati Dubey
PHP converts the string to number until non-numeric character and adds them.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
50
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
98%
Success Rate