Enums are coming to PHP 8.1

They are finally coming — built-in support for enums will be added in PHP 8.1! Some might consider them long overdue, but you don’t hear me complain; I’m glad they made it! This post is dedicated to looking at the newly added feature in-depth.

This thread was posted by one of our members via one of our news source trackers.

Corresponding tweet for this thread:

Share link for this tweet.