firstKey() public static méthode

Returns the first key in an array.
public static firstKey ( array $array ) : integer | string
$array array
Résultat integer | string
Exemple #1
0
 public function testFirstKey()
 {
     $test = array('a' => array('a' => 'b', 'c' => 'd'));
     is('a', Arr::firstKey(Vars::get($test['a'])));
 }