HH\Pair::firstValue

Returns the first value in the current Pair

public function firstValue(): Tv1;

Returns

  • Tv1 - The first value in the current Pair.

Examples

$p = Pair {'foo', -1.5};
var_dump($p->firstValue());
Output
string(3) "foo"