first() public static méthode

Returns the first element in an array.
public static first ( array $array ) : mixed
$array array
Résultat mixed
Exemple #1
0
 public function testFirst()
 {
     $test = array('a' => array('a', 'b', 'c'));
     is('a', Arr::first(Vars::get($test['a'])));
 }