PHP | ReflectionExtension info() Function Last Updated : 11 Dec, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report The ReflectionExtension::info() function is an inbuilt function in PHP which is used to return the information of the specified extension. Syntax: void ReflectionExtension::info( void ) Parameters: This function does not accept any parameter. Return Value: This function returns the information of the specified extension. Below programs illustrate the ReflectionExtension::info() function in PHP: Program 1: php <?php // Defining an extension $A = 'DOM'; // Using ReflectionExtension() over the // specified extension $extension = new ReflectionExtension($A); // Calling the info() function $B = $extension->info(); // Getting the information of the // specified extension var_dump($B); ?> Output: dom DOM/XML => enabled DOM/XML API Version => 20031129 libxml Version => 2.9.3 HTML Support => enabled XPath Support => enabled XPointer Support => enabled Schema Support => enabled RelaxNG Support => enabled NULL Program 2: php <?php // Using ReflectionExtension() over // a extension xml $extension = new ReflectionExtension('xml'); // Calling the info() function and // Getting the information of the specified extension var_dump($extension->info()); ?> Output: xml XML Support => active XML Namespace Support => active libxml2 Version => 2.9.3 NULL Reference: https://www.php.net/manual/en/reflectionextension.info.php Comment More infoAdvertise with us Next Article PHP | ReflectionExtension getVersion() Function K Kanchan_Ray Follow Improve Article Tags : Web Technologies PHP PHP-function PHP- Reflection Similar Reads PHP | ReflectionExtension getName() Function The ReflectionExtension::getName() function is an inbuilt function in PHP which is used to return the name of the specified extension. Syntax: string ReflectionExtension::getName( void ) Parameters: This function does not accept any parameter. Return Value: This function returns the name of the spec 1 min read PHP | ReflectionExtension getVersion() Function The ReflectionExtension::getVersion() function is an inbuilt function in PHP which is used to return the version of the specified extension. Syntax: string ReflectionExtension::getVersion( void ) Parameters: This function does not accept any parameter. Return Value: This function returns the version 1 min read PHP | ReflectionExtension isTemporary() Function The ReflectionExtension::isTemporary() function is an inbuilt function in PHP which is used to return true if the specified extension is temporary, otherwise returns false. Syntax: void ReflectionExtension::isTemporary( void ) Parameters: This function does not accept any parameter. Return Value: Th 1 min read PHP | ReflectionExtension getFunctions() Function The ReflectionExtension::getFunctions() function is an inbuilt function in PHP which is used to return extension functions from the specified extension. Syntax: array ReflectionExtension::getFunctions( void ) Parameters: This function does not accept any parameter. Return Value: This function return 2 min read PHP | ReflectionExtension isPersistent() Function The ReflectionExtension::isPersistent() function is an inbuilt function in PHP which is used to return true if the specified extension is persistent, otherwise return false. Syntax: void ReflectionExtension::isPersistent( void ) Parameters: This function does not accept any parameter. Return Value: 1 min read PHP | ReflectionExtension getINIEntries() Function The ReflectionExtension::getINIEntries() function is an inbuilt function in PHP which is used to return an array with the ini entries as keys and their defined values as values. Syntax: Array ReflectionExtension::getINIEntries( void ) Parameters: This function does not accept any parameter. Return V 1 min read Like