PHP | ReflectionClass isUserDefined() Function Last Updated : 19 Feb, 2021 Comments Improve Suggest changes Like Article Like Report The ReflectionClass::isUserDefined() function is an inbuilt function in PHP which is used to check if any user-defined class is available or not.Syntax: bool ReflectionClass::isUserDefined() Parameters: This function does not accept any parameter.Return Value: This function returns TRUE if the user-defined class is available, otherwise FALSE.Below programs illustrate the ReflectionClass::isUserDefined() function in PHP: Program 1: php <?php // Defining user-defined class Company Class Company { public function GeeksforGeeks() { } } // Using ReflectionClass over the // defined class $obj=new ReflectionClass('Company'); // Calling the isUserDefined() function $A = $obj->isUserDefined(); // Getting the value true or false var_dump($A); ?> Output: bool(true) Program 2: php <?php // Using a internal class 'ReflectionClass' $obj=new ReflectionClass('ReflectionClass'); // Calling the isUserDefined() function $A = $obj->isUserDefined(); // Getting the value true or false var_dump($A); ?> Output: bool(false) Reference: https://www.php.net/manual/en/reflectionclass.isuserdefined.php Comment More infoAdvertise with us Next Article PHP | ReflectionClass isUserDefined() Function K Kanchan_Ray Follow Improve Article Tags : Web Technologies PHP PHP-function PHP- ReflectionClass PHP- Reflection +1 More Similar Reads 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 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 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 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 | ReflectionClass getEndLine() Function The ReflectionClass::getEndLine() function is an inbuilt function in PHP which is used to return the line number where the user defined class get ends. Syntax: int ReflectionClass::getEndLine( void ) Parameters: This function does not accept any parameters. Return Value: This function returns the li 1 min read Like