HH\Pair::firstValue

Description

public function firstValue(): Tv1

Returns the first value in the current Pair.

Return Values

  • Tv1 - The first value in the current Pair.

Examples

<?hh

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

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