array_first 获取数组的第一个值 &reftitle.description; mixedarray_first arrayarray 获取指定 array 的第一个值。 &reftitle.parameters; array 数组。 &reftitle.returnvalues; 如果数组非空,则返回 array 的第一个值;否则返回 &null;。 &reftitle.examples; 基础 <function>array_first</function> 用法 'a', 0 => 'b', 3 => 'c', 2 => 'd']; $firstValue = array_first($array); var_dump($firstValue); ?> ]]> &example.outputs; &reftitle.seealso; array_key_first array_last