Functions for Working with Traits in OOP in PHP
Display a list of all declared traits on the screen.
Let you have the trait Trait1
and do not have
the trait Trait2
. Check what the
function trait_exists
will output for the trait Trait1
and for the trait Trait2
.