← All docs
class_get_attributes()
Returns an array of ReflectionAttribute objects for all attributes of a class.
class_get_attributes()
function class_get_attributes(string $class_name): array
Returns an array of ReflectionAttribute objects for all attributes of a class.
Parameters:
$class_name(string)
Returns: array
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how class_get_attributes is implemented in the compiler, see the internals page.