PHP | ReflectionExtension isPersistent() Function Last Updated : 13 Dec, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report 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: This function returns true if the specified extension is persistent, otherwise return false. Below programs illustrate the ReflectionExtension::isPersistent() function in PHP: Program_1: php <?php // Defining an extension $A = 'DOM'; // Using ReflectionExtension() over the // specified extension $extension = new ReflectionExtension($A); // Calling the isPersistent() function $B = $extension->isPersistent(); // Getting the value either true or false var_dump($B); ?> Output: bool(true) Program_2: php <?php // Using ReflectionExtension() over // an extension xml $extension = new ReflectionExtension('xml'); // Calling the isPersistent() function and // Getting the value either true or false var_dump($extension->isPersistent()); ?> Output: bool(true) Reference: https://www.php.net/manual/en/reflectionextension.ispersistent.php Comment More infoAdvertise with us Next Article PHP | ReflectionExtension getName() Function K Kanchan_Ray Follow Improve Article Tags : Web Technologies PHP PHP-function PHP- Reflection Similar Reads 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 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 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 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 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 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 Like