HH\Pair::toKeysArray

Description

public function toKeysArray(): array

Returns an array whose values are the keys from the current Pair.

Return Values

Examples

<?hh

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

$p = Pair {'foo', -1.5};

var_dump($p->toKeysArray());
Output
array(2) {
  [0]=>
  int(0)
  [1]=>
  int(1)
}