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());
object(HH\Vector)#2 (4) {
[0]=>
int(0)
[1]=>
int(1)
[2]=>
int(2)
[3]=>
int(3)
}