Search Results

  1. RecursiveArrayIterator::hasChildren (PHP 5 >= 5.1.0, PHP 7, PHP 8) RecursiveArrayIterator::hasChildren — Returns whether current entry is an array or an object

  2. Table of Contents RecursiveArrayIterator::getChildren — Returns an iterator for the current entry if it is an array or an object. RecursiveArrayIterator::hasChildren — Returns whether current entry is an array or an object.

  3. RecursiveArrayIterator::hasChildren (PHP 5 >= 5.1.0, PHP 7) RecursiveArrayIterator::hasChildren — Returns whether current entry is an array or an object Description public RecursiveArrayIterator::hasChildren ( ) : bool Returns whether current entry is an array or an object for which an iterator can be obtained via RecursiveArrayIterator::getChildren(). Parameters This function has no ...

  4. hasChildren () works as documented here, but not as its name suggests. The method does not return whether the current entry actually *has* children. It only returns whether the element's type is one that is able to have children. This is a bit counterintuitive if you are processing empty arrays.

  5. RecursiveArrayIterator::getChildren — Returns an iterator for the current entry if it is an array or an object RecursiveArrayIterator::hasChildren — Returns whether current entry is an array or an object

  6. Table of Contents RecursiveArrayIterator::getChildren — Returns an iterator for the current entry if it is an array or an object. RecursiveArrayIterator::hasChildren — Returns whether current entry is an array or an object.

  7. The RecursiveArrayIterator class Introduction (PHP 5 >= 5.1.0, PHP 7) This iterator allows to unset and modify values and keys while iterating over Arrays and Objects in the same way as the ArrayIterator. Additionally it is possible to iterate over the current iterator entry. Class synopsis RecursiveArrayIterator extends ArrayIterator implements RecursiveIterator { /* Inherited constants ...