February 2013
Intermediate to advanced
538 pages
20h 55m
English
trait_exists
bool trait_exists(stringname[, boolautoload])
Returns true if a trait with
the same name as the string has been defined; if not, it returns
false. The comparison for trait
names is case-insensitive. If autoload is set and is true, the autoloader attempts to load the
trait before checking its existence.
Read now
Unlock full access