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

πŸ‘οΈ
72
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
82%
Success Rate