[php-src] Issue #7729: enums

From: Date: Tue, 07 Dec 2021 10:23:22 +0000
Subject: [php-src] Issue #7729: enums
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-238235@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7729 Comment Author: richirm77 Thank you very much for your answer @iluuu1994! In the first point I was referring to obtaining the name of the case, not its backing value. ```php enum Foo: string { case Bar = 'qux'; case Baz = 'quux'; } $foo = Foo::Bar; // how can I get the string 'Bar' without using var_export()? ``` Thank you!

« previous php.bugs (#238235) next »