Q. What is the result of casting 'hello' to an integer in PHP?

  • (A) 0
  • (B) 1
  • (C) Error
  • (D) Undefined
πŸ’¬ Discuss
βœ… Correct Answer: (A) 0
Explanation: Non-numeric strings cast to integer result in 0.
Explanation by: Mr. Dubey
Non-numeric strings cast to integer result in 0.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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