I'm helping one of my employees learn #PHP in #VSCode. Sadly missing a repl, we just use `vardump($thing)` a ton to figure out how to get the field. Also, in PHP `== No` evaluates to `== "No"`. Seriously??
@worldsendless It's not a strict equality test, so it kinda makes sense to have No changed to 'No' to make it work. It's the same thing you'd get if you tried `0 == '0'`.
If you think about it, Common Lisp does the same. ASDF, for instance, accepts both `:system` and `"system"` as system identifiers.
Nevertheless, as @zimzat pointed out elsewhere in this thread, PHP no longer works that way in modern versions, so I'd urge you to upgrade for a better experience.
@worldsendless It's not a strict equality test, so it kinda makes sense to have No changed to 'No' to make it work. It's the same thing you'd get if you tried `0 == '0'`.
If you think about it, Common Lisp does the same. ASDF, for instance, accepts both `:system` and `"system"` as system identifiers.
Nevertheless, as @zimzat pointed out elsewhere in this thread, PHP no longer works that way in modern versions, so I'd urge you to upgrade for a better experience.