(PHP 5 >= 5.4.0, PHP 7, PHP 8)
trait_exists — Verifica si un trait existe
$trait
$autoload
true
trait
Nombre del trait a verificar
autoload
Si debe o no cargar automáticamente si no ha sido ya cargado.
Retorna true si el trait existe, y false en caso contrario.
false