first() 공개 정적인 메소드

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