HH\Pair::values
Returns an ImmVector
containing the values of the current Pair
public function values(): ImmVector<mixed>;
This method is interchangeable with toImmVector()
.
Returns
ImmVector<mixed>
- anImmVector
containing the values of the currentPair
.
Examples
$p = Pair {'foo', -1.5};
$immutable_v = $p->values();
var_dump($immutable_v);
object(HH\ImmVector)#2 (2) {
[0]=>
string(3) "foo"
[1]=>
float(-1.5)
}