Q. What will be the output of print 5 + '5 cars'?

  • (A) 10
  • (B) 55
  • (C) Error
  • (D) 5 cars
πŸ’¬ Discuss
βœ… Correct Answer: (A) 10
Explanation: PHP automatically converts '5 cars' to 5 for arithmetic operations.
Explanation by: Mr. Dubey
PHP automatically converts '5 cars' to 5 for arithmetic operations.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
127
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
96%
Success Rate