ConstSet::lastKey

Returns the last "key" in the current ConstSet.

Description

public function lastKey(): mixed

Returns the last "key" in the current ConstSet.

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

This method is interchangeable with lastValue().

Return Values

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