HH\Pair::toValuesArray
Returns an array
containing the values from the current Pair
public function toValuesArray<Tu>(): varray<Tu>;
This method is interchangeable with toArray()
.
Returns
varray<Tu>
- anarray
containing the values from the currentPair
.
Examples
$p = Pair {'foo', -1.5};
$array = $p->toValuesArray();
var_dump(is_array($array));
var_dump($array);
bool(true)
array(2) {
[0]=>
string(3) "foo"
[1]=>
float(-1.5)
}