PHP | ReflectionExtension getName() Function Last Updated : 11 Dec, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report 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 specified extension. Below programs illustrate the ReflectionExtension::getName() function in PHP: Program_1: php <?php // Defining an extension $A = 'DOM'; // Using ReflectionExtension() over the // specified extension $extension = new ReflectionExtension($A); // Calling the getName() function $B = $extension->getName(); // Getting the name of the // specified extension var_dump($B); ?> Output: string(3) "dom" Program_2: php <?php // Using ReflectionExtension() over // a extension xml $extension = new ReflectionExtension('xml'); // Calling the getName() function and // Getting the name of the specified extension var_dump($extension->getName()); ?> Output: string(3) "xml" Reference: https://www.php.net/manual/en/reflectionextension.getname.php Comment More infoAdvertise with us Next Article PHP | ReflectionExtension getClasses() Function K Kanchan_Ray Follow Improve Article Tags : Web Technologies PHP PHP-function PHP- Reflection Similar Reads PHP | ReflectionExtension getClassNames() Function The ReflectionExtension::getClassNames() function is an inbuilt function in PHP which is used to return an array of class names from the specified extension. If no classes are specified, an empty array is returned. Syntax: array ReflectionExtension::getClassNames( void ) Parameters: This function do 2 min read PHP | ReflectionExtension getClasses() Function The ReflectionExtension::getClasses() function is an inbuilt function in PHP which is used to return a list of classes from specified extension. If no classes are specified, an empty array is returned. Syntax: array ReflectionExtension::getClasses( void ) Parameters: This function does not accept an 2 min read PHP | ReflectionExtension getConstants() Function The ReflectionExtension::getConstants() function is an inbuilt function in PHP which is used to return an associative array with constant names as keys. Syntax: array ReflectionExtension::getConstants( void ) Parameters: This function does not accept any parameter. Return Value: This function return 2 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 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 PHP | ReflectionExtension info() Function 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 th 1 min read Like