HH\Pair::lastValue

Description

public function lastValue(): Tv2

Returns the last value in the current Pair.

Return Values

  • Tv2 - The last value in the current Pair.

Examples

<?hh

namespace Hack\UserDocumentation\API\Examples\Pair\LastValue;

$p = Pair {'foo', -1.5};
var_dump($p->lastValue());
Output
float(-1.5)