class_attribute_names()
function class_attribute_names(string $class_name): array
Returns the list of attribute names applied to a class.
Parameters:
$class_name(string)
Returns: array
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/symbols/class_attribute_names.rs).- Strict PHP mode: hidden — this builtin is an elephc extension with no PHP equivalent, so programs compiled with
--strict-phptreat the name as nonexistent, in compiled code and inside eval’d code.
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how class_attribute_names is implemented in the compiler, see the internals page.