firstKey() 공개 정적인 메소드

Returns the first key in an array.
public static firstKey ( array $array ) : integer | string
$array array
리턴 integer | string
예제 #1
0
파일: ArrayTest.php 프로젝트: jbzoo/utils
 public function testFirstKey()
 {
     $test = array('a' => array('a' => 'b', 'c' => 'd'));
     is('a', Arr::firstKey(Vars::get($test['a'])));
 }