← All docs

class_attribute_names()

Returns the list of attribute names applied to a class.

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

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.