minwork/array
Minwork Array provides fast, well-tested helpers for nested, associative, and object arrays. Get/set/has plus map, filter, find, group, sort, and validation, with fluent-style chaining. No dependencies; modern PHP syntax.
Arr::getFirstValue(array $array): mixed|null
Get the first value of the given array without affecting the internal array pointer.
Returns null if array is empty.
Arr::getFirstValue(['a' => 1, 'b' => 2, 'c' => 3]) -> 1
Arr::getFirstValue([1, 2, 3, 4, 5]) -> 1
Arr::getFirstValue([]) -> null
How can I help you explore Laravel packages today?