- is_subclass_of: documentation ( source)
<?php
trait MyInterface {}
class MyClass { use MyInterface; }
// This will fail on 5.3.8 and earlier, this has been fixed
// in #53727, but doc does not reflect that.
echo (is_subclass_of('MyInterface', 'MyClass') ? 'true' : 'false');