Inexplicably, Perl did away with switch/case! They replaced it with "given", but even now that one's on the fence:
[
perltutorial.org...]
It's infinitely faster to use switch/case than if/else in PHP, so I really have no clue why it was removed :-(
Originally all of these conditions were just "if", but I recently changed them to "if / elsif". Unless I come across an issue in practice, then you are correct that only one condition will apply at any given time. I'm hesitant to rely on that, though, just because it hasn't been fully tested.
The final list of examples gave me a giggle, because it reminded me of a former forum where one person kept mis-typing the name of a beloved pet so it came out as a vile ethnic slur and people wondered why the pet was named
My main site turns 20 years old next year, so I have a HUGE list of those types of examples! In my classifieds, just about everybody misspells "shih tzu", so I have to autofix that, too :-O
The biggest problem I have is with phone numbers, really. Some people make an honest mistake (like they mean to type "123-4456" but instead type "123-4556"), and some are intentionally trying to get someone harassed (by entering a friend or enemy's phone number in a super cheap classified). And I never know about it until someone reports it.
The most common fix is to do something like, "if the username is NOT the pre-approved username and anything contains their phone number, remove the phone number". Or, my own personal favorite, "if the username is X and the phone number is anything other than the confirmed Y, change it to Y". This works well because they inevitably get themselves harassed and delete it fast, and if pushed I can always say, "golly, I'm sorry, I assumed it was a typo and was just trying to help!" LOL