HH\ImmSet::firstKey

Returns the first "key" in the current ImmSet

public function firstKey(): ?arraykey;

Since ImmSets do not have keys, it returns the first value.

This method is interchangeable with firstValue().

Return Values

  • ?arraykey - The first value in the current ImmSet, or null if the current ImmSet is empty.