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

πŸ‘οΈ
61
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
80%
Success Rate