< PHPJump to navigation Jump to search
The autoloader treats traits like classes.
- trait_exists(): returns TRUE if the trait has been declared in code that has executed.
There does not appear to be a function to detect if a given class or object uses a given trait.
- Official: traits