PHP Enumerations
Enumerations were added to PHP in PHP 8.1 so I decided to give them a try, and I quite like them. Here’s the most basic form enum MaritalStatus { case Single; case Married; case Divorced; case
Whenever I learn something, I find I understand it better if I write it out like I'm explaining it to somebody else. Also, it's handy if I come back to it twelve months later and I've forgotten it. I normally just put them in a folder on my PC, but I thought I'd try sticking them on the web in case they help anybody else.