Type Juggler
== vs ===, numeric strings, falsy values, array keys, strict_types and ??.
0 / 7 levels · 0 / 21 ★Start playing ›
Type Juggler
== is a juggler. You throw it two values, it catches them, turns them into the same type, then compares. === refuses to juggle: same type and same value, or false. strict_types tells the juggler to stop catching what you throw at function parameters.
Your rulebook
Finish a level to add its rule. Fill the book and you can explain all of this in an interview.
- 1Finish Juggle or refuse to unlock this rule.
- 2Finish Strings that look like numbers to unlock this rule.
- 3Finish PHP 8 stopped guessing to unlock this rule.
- 4Finish The falsy family to unlock this rule.
- 5Finish Keys get juggled too to unlock this rule.
- 6Finish Stop catching to unlock this rule.
- 7Finish ?? or ?: to unlock this rule.