MutableSet::firstKey

Returns the first "key" in the current MutableSet.

Description

public function firstKey(): mixed

Returns the first "key" in the current MutableSet.

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

This method is interchangeable with firstValue().

Return Values