If you’re trying to directly compare different variable types in any language without strong typing, you’re going to have edge-case results which you might not expect.
My “coding like a moron” message still stands. PHP isn’t a strongly typed language and it doesn’t tell you off for trying stupid stuff like comparing a string with an int. Nor do other languages like JavaScript.
“php doesn’t stop me from coding like a moron, therefore php sucks”
The trick is to only use DDG and nothing else. I haven’t used Google for years so I have no idea how crap the DDG results are in comparison…
Flexbox is god
It seems that there’s an issue where Reddit rate-limits the comment editing, so many comments don’t get edited. There are other versions of the script which add a 5 second delay to avoid getting limited.
Here you go:
The widespread use of Discord baffles me. It seems to be basically IRC with voice chat and no choice in servers. It’s good for group voice chat with people you already know, but I can’t see how it fits any other use case like being a replacement for a subreddit community.
I just tested these out out of curiosity.
0==“text” returns false in PHP 8.2 as I’d expect.
The others make sense in the way that php juggles between types. An empty variable can type-juggle to null, but an array can’t be directly compared with a string.
(Although you wouldn’t really want to compare an array with a string, PHP just treats an array as greater than other variables. So weirdly, ([] > “”) == true.)