Type Juggler · Level 4 of 7

The falsy family

null, false, an empty array and "0" compared with ==, then one with ===.

<?phpecho var_export(null == false, true) . PHP_EOL;echo var_export([] == false, true) . PHP_EOL;echo var_export("0" == false, true) . PHP_EOL;echo var_export(null === false, true) . PHP_EOL;

1. Predict the output

Tap the lines in the order you think they print.

  1. 1…
  2. 2…
  3. 3…
  4. 4…