I'm helping one of my employees learn in . 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??

Follow

@josemanuel Fails because symbols are not strings. Why on earth does that work?

@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.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.