PHP | ReflectionClass isIterateable() Function Last Updated : 05 Dec, 2019 Comments Improve Suggest changes Like Article Like Report 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 defined class is iterateable, otherwise FALSE. Below programs illustrate the ReflectionClass::isIterateable() function in PHP: Program 1: php <?php // Creating an iterating class p class p implements Iterator { public function rewind() {} public function next() {} public function valid() {} public function current() {} public function key() {} } // Using ReflectionClass() over the // class p $class = new ReflectionClass('p'); // Calling the isIterateable() function $A = $class->isIterateable(); // Getting the value true or false var_dump($A); ?> Output: bool(true) Program 2: php <?php // Creating an iterating class p class p { public function getIterator() {} } // Using ReflectionClass() over the // class p $class = new ReflectionClass('p'); // Calling the isIterateable() function $A = $class->isIterateable(); // Getting the value true or false var_dump($A); ?> Output: bool(false) Reference: https://www.php.net/manual/en/reflectionclass.isiterateable.php Comment More infoAdvertise with us Next Article PHP | ReflectionClass isIterateable() Function K Kanchan_Ray Follow Improve Article Tags : Web Technologies PHP PHP-function PHP- ReflectionClass PHP- Reflection +1 More Similar Reads 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 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 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 isCloneable() Function The ReflectionClass::isCloneable() function is an inbuilt function in PHP which is used to check the specified class is cloneable or not. Syntax: bool ReflectionClass::isCloneable( void ) Parameters: This function does not accept any parameters. Return Value: This function returns True if class is c 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 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 isAbstract() Function 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 1 min read PHP | ReflectionClass getInterfaceNames() Function The ReflectionClass::getInterfaceNames() function is an inbuilt function in PHP which is used to return an array of interface names as values. Syntax: array ReflectionClass::getInterfaceNames( void ) Parameters: This function does not accept any parameters. Return Value: This function returns an arr 1 min read PHP | ReflectionClass getTraitAliases() Function The ReflectionClass::getTraitAliases() function is an inbuilt function in PHP which is used to return an array of trait aliases used by the user-defined class.Syntax: array ReflectionClass::getTraitAliases( void ) Parameters: This function does not accept any parameters.Return Value: This function r 1 min read PHP | ReflectionClass getStartLine() Function The ReflectionClass::getStartLine() function is an inbuilt function in PHP which is used to return the line number from where the user defined class get started. Syntax: int ReflectionClass::getStartLine( void ) Parameters: This function does not accept any parameters. Return Value: This function re 1 min read Like