What is the result of the loose comparison: `var_dump(null == []);`?

PHP Intermediate Medium

PHP Intermediate — Medium

What is the result of the loose comparison: `var_dump(null == []);`?

Key points

  • Loose comparison rules differ from boolean casting
  • Arrays are not equal to null in loose comparisons
  • Type juggling follows specific internal rules

Ready to go further?

Related questions