Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

class_uses()

3 tags 1 category

class_uses() — Return the traits used by the given class.

class_uses() — This function returns an array with the names of the traits that the given object_or_class uses. This does however not include any traits used by a parent class.

Inputs: object_or_class: An object (class instance) or a string (class name). autoload: Whether to autoload if not already loaded.

Returns: An array on success, or false when the given class doesn’t exist.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…