πŸ“Š PHP
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

πŸ‘οΈ
56
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate