(PHP 5 >= 5.4.0, PHP 7)
trait_exists — Verifica se a trait existe
$traitname
[, bool $autoload
] ) : bool
traitname
Nome da trait para verificação
autoload
Se deve carregar automaticamente a trait se caso ainda não estiver carregada.
Retorna TRUE
se a Trait existir, FALSE
caso não exista, NULL
caso aconteça algum erro.