What is the result of the comparison: var_dump(null == false);

PHP Intermediate Medium

PHP Intermediate — Medium

What is the result of the comparison: var_dump(null == false);

Key points

  • Loose comparison uses type juggling
  • Null and false are both falsy values
  • Strict comparison (===) would return false

Ready to go further?

Related questions