---
title: "Discussion on \"PHP Enumerations\" | Hashnode"
description: "Discussion on \"PHP Enumerations\". Enumerations were added to PHP in PHP 8.1 so I decided to give them a try, and I quite like them.\nHere’s the most basic form\nenum MaritalStatus {\n  case Single;\n  case Married;\n  case Divorced;\n  case"
url: "https://hashnode.com/posts/php-enumerations/6ae8a0f2095907b369641ce6"
---

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

Discussion

# [PHP Enumerations](https://pauls-brain-dump.hashnode.dev/php-enumerations?utm_source=hashnode&utm_medium=feed)

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

Nov 2 · 6 min read · pauls-brain-dump.hashnode.dev  
Read the article

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

## Written by

[Paul Hunter](https://hashnode.com/@paulh)

@paulh · Salford, United Kingdom

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
