class_uses
PHP 5 >= 5.4.0, PHP 7, PHP 8
class_uses - Return the traits used by the given class
Code Examples
Example #1 class_uses example
Result: Array
(
[foo] => foo
)
Array
(
[foo] => foo
)
Array
(
[trait_of_not_loaded] => trait_of_not_loaded
)