trait_exists
trait_exists
Checks if the trait exists
bool **trait_exists** string $trait bool $autoload
traitName of the trait to check
autoload
Whether to
if not already loaded.
autoload
Returns true if trait exists, and false otherwise.
Checks if the trait exists
bool **trait_exists** string $trait bool $autoload
traitName of the trait to check
autoload
Whether to
if not already loaded.
autoload
Returns true if trait exists, and false otherwise.