PHP: Using Switch to test Multiple Conditions
Ok, so maybe this is common knowledge, but I still felt a little clever when I figured out this trick. The situation was that I wanted to test a bunch of different conditions to figure out which time category a date falls into. It would be fairly simple to do with a bunch of if…then…else’s, [...]


