How to get Enum values Array in PHP

Viewed 80

I have Enum Class.

<?php

namespace Enum;


enum Status:string
{
    case ACTIVE = 'active';
    case ARCHIVE = 'archive';
    case INACTIVE = 'inactive';
}

I'd like to retrieve values as array like this. ['active', 'archive', 'inactive'].

Can anyone please help me how I can get this?

0 Answers
Related