SplFixedArray::current

(PHP 5 >= 5.3.0, PHP 7)

SplFixedArray::currentReturn current array entry

說(shuō)明

public SplFixedArray::current(): mixed

Get the current array element.

參數(shù)

此函數(shù)沒(méi)有參數(shù)。

返回值

The current element value.

錯(cuò)誤/異常

Throws RuntimeException when the internal array pointer points to an invalid index or is out of bounds.