HH\Vector::keys
Returns a Vector
containing the keys of the current Vector
public function keys(): Vector<int>;
Returns
Vector<int>
- AVector
containing the integer keys of the currentVector
.
Examples
$v = Vector {'red', 'green', 'blue', 'yellow'};
\var_dump($v->keys());