trait_exists
En esta página
trait_exists
Verifica si un trait existe
Descripción#
php
trait_exists(string $trait, [bool $autoload]): boolphp
Parámetros#
trait
Nombre del trait a verificar
autoload
Si debe o no cargar automáticamente si no ha sido ya cargado.
Valores devueltos#
Retorna true si el trait existe, y false en caso contrario.