Which of the following is a valid syntax for an enumerator in PHP 8.1? - Study24x7
Social learning Network
6 followers study24x7 08 Jan 2025 10:45 AM study24x7 study24x7

Which of the following is a valid syntax for an enumerator in PHP 8.1?

A

enum Color { case RED; case BLUE; }

B

class Color { enum RED; enum BLUE; }

C

enum Color = { RED, BLUE };

D

Color enum { RED, BLUE };

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles