class_uses

PHP 5 >= 5.4.0, PHP 7, PHP 8
class_uses - Return the traits used by the given class
Manual
Code Examples

Example #1 class_uses example

Result: Array ( [foo] => foo ) Array ( [foo] => foo ) Array ( [trait_of_not_loaded] => trait_of_not_loaded )
PHP Version:


Function class_uses:

Standard PHP Library (SPL) Functions

Most used PHP functions