class_uses Return the traits used by the given class &reftitle.description; arrayclass_uses mixedclass boolautoloadtrue This function returns an array with the names of the traits that the given class uses. This does however not include any traits used by a parent class. &reftitle.parameters; class An object (class instance) or a string (class name). autoload Whether to allow this function to load the class automatically through the __autoload magic method. &reftitle.returnvalues; An array on success, or &false; on error. &reftitle.examples; <function>class_uses</function> example ]]> &example.outputs.similar; foo ) Array ( [foo] => foo ) Array ( [trait_of_not_loaded] => trait_of_not_loaded ) ]]> &reftitle.seealso; class_parents get_declared_traits