get_declared_interfaces( ) returns an array of all the interfaces currently available to you : get_declared_interfaces « Reflection « PHP






get_declared_interfaces( ) returns an array of all the interfaces currently available to you

 
<?
    interface Boat {
            function sink( );
            function scuttle( );
            function dock( );
    }

    interface Plane extends Boat {
            function takeoff( );
            function land( );
            function bailout( );
    }

    class Boatplane implements Plane {
            public function sink( ) { }
            public function scuttle( ) { }
            public function dock( ) { }
            public function takeoff( ) { }
            public function land( ) { }
            public function bailout( ) { }
    }

    $obj = new Boatplane( );
?>
  
  








Related examples in the same category

1.Listing Currently Loaded Interfaces and Classes