← All built-ins / reset()

reset()

reset(...$args): mixed

Parameters

NameTypeDescription
$aarrayarray

Return value

The value of the first element.

Example

echo reset([7, 8, 9]);
7

See also

end()array_key_first()