array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'fr', ), 'this' => array ( 0 => 'function.trait-exists.php', 1 => 'trait_exists', ), 'up' => array ( 0 => 'ref.classobj.php', 1 => 'Fonctions Classes/Objets', ), 'prev' => array ( 0 => 'function.property-exists.php', 1 => 'property_exists', ), 'next' => array ( 0 => 'book.ctype.php', 1 => 'ctype', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'fr', '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 — Vérifie si un trait existe
trait
Nom du trait à vérifier
autoload
S'il faut ou non charger automatiquement s'il n'a pas déjà été chargé.