What is the result of the expression: var_dump([] == false);

PHP Intermediate Hard

PHP Intermediate — Hard

What is the result of the expression: var_dump([] == false);

Key points

  • Loose comparison triggers type juggling
  • Empty arrays evaluate to false in boolean contexts
  • Strict comparison (===) would return false

Ready to go further?

Related questions