HH\Pair::toKeysArray
Returns an array
whose values are the keys from the current Pair
public function toKeysArray(): varray<int>;
Returns
varray<int>
- anarray
with the integer keys from the currentPair
.
Examples
$p = Pair {'foo', -1.5};
var_dump($p->toKeysArray());
array(2) {
[0]=>
int(0)
[1]=>
int(1)
}