Q. What is the output of this code?

Code:
var_dump(null == false);
  • (A) bool(true)
  • (B) bool(false)
  • (C) Error
  • (D) NULL
πŸ’¬ Discuss
βœ… Correct Answer: (A) bool(true)
Explanation: When using == operator, null is considered equal to false.
Explanation by: Rati Dubey
When using == operator, null is considered equal to false.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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