alto / array-functions
Array functions for PHP
dev-main
2025-04-13 02:09 UTC
Requires
- php: >=8.3
Requires (Dev)
- phpunit/phpunit: ^11.0
This package is not auto-updated.
Last update: 2025-05-12 00:51:55 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.