<?php class Foo {} #[Foo] class Bar {} $reflection = new ReflectionClass(Bar::class); var_dump( $attr = $reflection->getAttributes(), $attr[0]->getName(), $attr[0]->getTarget(), );
You have javascript disabled. You will not be able to edit any code.