ConstSet::firstKey

Returns the first "key" in the current ConstSet

public function firstKey(): ?arraykey;

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

This method is interchangeable with firstValue().

Returns

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