php8.5
Home/ Manual/ spl / parentiterator/ ParentIterator::accept

ParentIterator::accept

PHP function Edit on GitHub ✎

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

Determines acceptability

Description

ParentIterator::accept(): bool

Determines if the current element has children.

Func

Parameters Parameters

Return Values

true if the current element is acceptable, otherwise false.

See Also

  • ParentIterator::hasChildren
  • FilterIterator::accept

Source: reference/spl/parentiterator/accept.xml · from the official PHP manual (php/doc-en)