HH\Iterable::lastValue

Returns the last value in the current Iterable

public function lastValue(): ?Tv;

Returns

  • ?Tv - The last value in the current Iterable, or null if the current Iterable is empty.