|
class_usesReturn the traits used by the given class Description
array class_uses
( mixed
$class
[, bool $autoload = true
] )
This function returns an array with the names of the traits that the
given Parameters
Return Values
An array on success, or Examples
Example #1 class_uses example
<?php The above example will output something similar to: Array ( [foo] => foo ) Array ( [foo] => foo ) Array ( [trait_of_not_loaded] => trait_of_not_loaded ) See Also
|