DEV Community

Cover image for How to use PHP native enum?
👨‍💻Pierre-Henry ✨
👨‍💻Pierre-Henry ✨

Posted on

How to use PHP native enum?

PHP 8.1 offers natively the new enum structure. Let's see how we can use them in an advanced way! 🚀 And how it can make your code cleaner, more consistent, and easier to understand! 💡

Top comments (1)

Collapse
 
pierre profile image
👨‍💻Pierre-Henry ✨ • Edited

By the way, if you’d like to take your programming skills to the next level, I’ve also published a Udemy course teaching how to build a real-worldapplication from scratch udemy.com/user/pierresoria