|
class_usesReturn the traits used by the given class Beschreibung
array class_uses
( mixed
$class
[, bool $autoload = true
] )
This function returns an array with the names of the traits that the
given Parameter-Liste
Rückgabewerte
An array on success, or Beispiele
Beispiel #1 class_uses example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
Array
(
[foo] => foo
)
Array
(
[foo] => foo
)
Array
(
[trait_of_not_loaded] => trait_of_not_loaded
)
Siehe auch
|