array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'function.trait-exists.php', 1 => 'trait_exists', ), 'up' => array ( 0 => 'ref.classobj.php', 1 => 'Funções para Classes/Objetos', ), 'prev' => array ( 0 => 'function.property-exists.php', 1 => 'property_exists', ), 'next' => array ( 0 => 'book.ctype.php', 1 => 'Ctype', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'pt_BR', 'path' => 'reference/classobj/functions/trait-exists.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.4.0, PHP 7, PHP 8)
trait_exists — Verifica se a trait existe
trait
Nome da trait para verificação
autoload
Se deve-se carregar automaticamente a trait caso não tenha sido caregada.