array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'class.reflectionattribute.php', 1 => 'ReflectionAttribute', ), 'up' => array ( 0 => 'book.reflection.php', 1 => 'Reflection', ), 'prev' => array ( 0 => 'reflectionreference.getid.php', 1 => 'ReflectionReference::getId', ), 'next' => array ( 0 => 'reflectionattribute.construct.php', 1 => 'ReflectionAttribute::__construct', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/reflection/reflectionattribute.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.reflectionattribute.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 8)
The ReflectionAttribute class provides information about an Attribute.
ReflectionAttribute::IS_INSTANCEOF
Retrieve attributes using an
instanceof
check.
Note:
The values of these constants may change between PHP versions. It is recommended to always use the constants and not rely on the values directly.