---
title: "Discussion on \"Enumeration in PHP\" | Hashnode"
description: "Discussion on \"Enumeration in PHP\". tldr; php 8.1 will introduce enum as a new data type derived from classes and will behave like objects.\nEnum syntax in PHP\nenum Status{\n    case Draft;\n    case Published;\n    case Archived;\n}\n\nlong gone are the days of php being mocked for missing f..."
url: "https://hashnode.com/posts/enumeration-in-php/63d6aec915fd6b3fd025ea74"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Enumeration in PHP](https://ri5h.hashnode.dev/enumeration-in-php?utm_source=hashnode&utm_medium=feed)

tldr; php 8.1 will introduce enum as a new data type derived from classes and will behave like objects. Enum syntax in PHP enum Status{ case Draft; case Published; case Archived; } long gone are the days of php being mocked for missing f...

Feb 10, 2021 · 2 min read · ri5h.hashnode.dev  
Read the article

-   [#php](https://hashnode.com/tag/php)
-   [#enum](https://hashnode.com/tag/enum)

## Written by

[Rishiraj Purohit](https://hashnode.com/@ri5h)

@ri5h

  
[View profile](https://hashnode.com/@ri5h)

I like software development

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
