SplFixedArray::key

Return current array index

Warning

This feature was REMOVED as of PHP 8.0.0.

Description

public int SplFixedArray::key()

Returns the current array index.

Parameters

This function has no parameters.

Return Values

The current array index.

Changelog

Version Description
8.0.0 Removed this function. Use SplFixedArray::getIterator instead.