Skip to content

PHP: Provides a user-land polyfill for `array_first` and `array_last` functions added in PHP 8.5

License

Notifications You must be signed in to change notification settings

chapeupreto/array-first-array-last

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

array_first and array_last polyfills

Latest Stable Version License PHP Version Require

Provides user-land PHP polyfills for the array_first and array_last functions added in PHP 8.5.

Requires PHP 7.3 or later. Not supported on PHP 8.5 because these functions are natively implemented in PHP 8.5.

Installation

composer require polyfills/array-first-array-last

Usage

Simply use the array_first and array_last functions as if they were declared already.

Contributions

Contributions are welcome either as a GitHub issue or a PR to this repo.

About

PHP: Provides a user-land polyfill for `array_first` and `array_last` functions added in PHP 8.5

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%