array_key_first — Gets the first key of an array

 

说明

array_key_first ( array $array ) : mixed

Get the first key of the given array without affecting the internal array pointer.https://www.bzddrive.com/

参数

array

An array.

返回值

Returns the first key of array if the array is not empty; NULL otherwise. 

原文地址:https://www.cnblogs.com/furuihua/p/12870162.html