php8.5
Home/ Manual/ spl / emptyiterator/ EmptyIterator::current

EmptyIterator::current

PHP function Edit on GitHub ✎

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

The current() method

Description

EmptyIterator::current(): never

This function must not be called. It throws an exception upon access.

Func

Parameters Parameters

Errors/Exceptions

Throws an Exception if called.

Return Values

Void

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