alto / array-functions
Array functions for PHP
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
pkg:composer/alto/array-functions
Requires
- php: >=8.3
Requires (Dev)
- phpunit/phpunit: ^11.0
This package is auto-updated.
Last update: 2025-10-12 00:53:40 UTC
README
Installation
composer require alto/array-functions
Functions
array_first
Returns the first element of an array or null if the array is empty.
array_first(array $array): mixed
array_last
Returns the last element of an array or null if the array is empty.
array_last(array $array): mixed
License
This package is licensed under the MIT License. See the LICENSE file for more information.