HH\ImmVector::firstKey

Returns the first key in the current ImmVector

public function firstKey(): ?int;

Returns

  • ?int - The first key (an integer) in the current ImmVector, or null if the current ImmVector is empty.

Examples

See Vector::firstKey for usage examples.