PHP | ReflectionClass isAbstract() Function Last Updated : 04 Dec, 2019 Comments Improve Suggest changes Like Article Like Report The ReflectionClass::isAbstract() function is an inbuilt function in PHP which is used to check the specified class is abstract or not. Syntax: bool ReflectionClass::isAbstract( void ) Parameters: This function does not accept any parameters. Return Value: This function returns true for the success or false on failure. Below programs illustrate the ReflectionClass::isAbstract() function in PHP: Program 1: php <?php // Defining a abstract class abstractGFG abstract class abstractGFG {} // Using ReflectionClass over the above // abstractGFG class $Class = new ReflectionClass('abstractGFG'); // Calling isAbstract() function $A = $Class->isAbstract(); // Getting the value either true or false var_dump($A); ?> Output: bool(true) Program 2: php <?php // Defining a user-defined class Company class Company { Public Function GeeksforGeeks() {} Private Function GFG() {} } // Using ReflectionClass over the above // Company class $Class = new ReflectionClass('Company'); // Calling isAbstract() function $A = $Class->isAbstract(); // Getting the value either true or false var_dump($A); ?> Output: bool(false) Reference: https://www.php.net/manual/en/reflectionclass.isabstract.php Comment More infoAdvertise with us Next Article PHP | ReflectionClass isAbstract() Function K Kanchan_Ray Follow Improve Article Tags : Web Technologies PHP PHP-function PHP- ReflectionClass PHP- Reflection +1 More Similar Reads PHP | ReflectionClass isInstance() Function The ReflectionClass::isInstance() function is an inbuilt function in PHP which is used to check whether the specified object is an instance of the class or not. Syntax: bool ReflectionClass::isInstance( object $object ) Parameters: This function accepts a single parameter object which is being searc 1 min read PHP | ReflectionClass isInterface() Function The ReflectionClass::isInterface() function is an inbuilt function in PHP which is used to check the specified class is an interface or not. Syntax: bool ReflectionClass::isInterface( void ) Parameters: This function does not accept any parameters. Return Value: This function returns TRUE if the spe 1 min read PHP | ReflectionClass isInternal() Function The ReflectionClass::isInternal() function is an inbuilt function in PHP which is used to check if class is defined internally by an extension, or the core. Syntax: bool ReflectionClass::isInternal( void ) Parameters: This function does not accept any parameters. Return Value: This function returns 1 min read PHP | ReflectionMethod isAbstract() Function The ReflectionMethod::isAbstract() function is an inbuilt function in PHP which is used to return TRUE if the specified method is abstract, otherwise FALSE. Syntax: bool ReflectionMethod::isAbstract ( void ) Parameters: This function does not accept any parameter. Return Value: This function returns 2 min read PHP | ReflectionClass isIterateable() Function The ReflectionClass::isIterateable() function is an inbuilt function in PHP which is used to check if the defined class is iterateable or not. Syntax: bool ReflectionClass::isIterateable() Parameters: This function does not accept any parameter. Return Value: This function returns TRUE if the define 1 min read PHP | ReflectionClass inNamespace() Function The ReflectionClass::inNamespace() function is an inbuilt function in PHP which is used to check the existence of the namespace. It returns true for the success or false on failure. Syntax: bool ReflectionClass::inNamespace( void ) Parameters: This function does not accept any parameters. Return Val 1 min read PHP | ReflectionClass hasConstant() Function The ReflectionClass::hasConstant() function is an inbuilt function in PHP which is used to check the specified constant is present or not. Syntax: bool ReflectionClass::hasConstant( string $name ) Parameters: This function accepts a single parameter $name which holds the name of the defined constant 1 min read PHP | ReflectionClass isFinal() Function The ReflectionClass::isFinal() function is an inbuilt function in PHP which is used to check the specified class is final or not. Syntax: bool ReflectionClass::isFinal( void ) Parameters: This function does not accept any parameters. Return Value: This function returns true for the success or false 1 min read PHP | ReflectionClass isInstantiable() Function The ReflectionClass::isInstantiable() function is an inbuilt function in PHP which is used to check the specified class is instantiable or not. Syntax: bool ReflectionClass::isInstantiable( void ) Parameters: This function does not accept any parameters. Return Value: This function returns TRUE if t 1 min read PHP | ReflectionClass isAnonymous() Function The ReflectionClass::isAnonymous() function is an inbuilt function in PHP which is used to check the specified class is anonymous or not. Syntax: bool ReflectionClass::isAnonymous( void ) Parameters: This function does not accept any parameters. Return Value: This function returns True on success or 1 min read Like