Listing Currently Loaded Interfaces and Classes : get_declared_interfaces « Reflection « PHP






Listing Currently Loaded Interfaces and Classes

 
obtain lists of the interfaces and classes currently loaded with the functions get_declared_interfaces() and get_declared_classes(), respectively. 

<?
printf("<p>Interfaces currently available: %s</p>", 
implode(', ', get_declared_interfaces())); 
printf("<p>Classes currentlyavailable: %s</p>", 
implode(', ', get_declared_classes())); 
?>
  
  








Related examples in the same category

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