PHP/trait
Jump to navigation
Jump to search
About
In PHP, a trait is a set of member-variables and method-functions which can be added to the declaration of any class.
Functions
- 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.
Links
- Official: traits