Thanks to visit codestin.com Credit goes to www.php.net
(PHP 8)
InternalIterator::valid — Check if current position is valid
Checks if current position is valid.
У цієї функції немає параметрів.
Returns whether the current position is valid.