ConstSet::firstKey

Returns the first "key" in the current ConstSet.

Description

public function firstKey(): mixed

Returns the first "key" in the current ConstSet.

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

This method is interchangeable with firstValue().

Return Values

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