Get only the keys of current array.
public keys ( ) : |
||
return | An ArrayObject containing only the keys of current array. |
/** * @dataProvider arraySet1 */ public function testKeys($array) { $a = new ArrayObject($array); $keys = $a->keys(); $this->assertSame(array_keys($array), $keys->val()); }