MutableSet::lastKey

Returns the last "key" in the current MutableSet

Description

public function lastKey(): mixed

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

This method is interchangeable with lastValue().

Return Values