https://github.com/php-polyfills/array-find
PHP: Provides a user-land polyfill for `array_find`, `array_find_key`, `array_any` and `array_all` functions added in PHP 8.4.
https://github.com/php-polyfills/array-find
compat php php-polyfill php8 php84 polyfills
Last synced: 12 months ago
JSON representation
PHP: Provides a user-land polyfill for `array_find`, `array_find_key`, `array_any` and `array_all` functions added in PHP 8.4.
- Host: GitHub
- URL: https://github.com/php-polyfills/array-find
- Owner: PHP-Polyfills
- License: mit
- Created: 2024-06-01T08:51:26.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-01T22:28:13.000Z (almost 2 years ago)
- Last Synced: 2025-03-23T22:24:30.916Z (about 1 year ago)
- Topics: compat, php, php-polyfill, php8, php84, polyfills
- Language: PHP
- Homepage: https://php.watch/versions/8.4/array_find-array_find_key-array_any-array_all
- Size: 5.86 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `array_find`, `array_find_key`, `array_any` and `array_all` polyfills
[](https://packagist.org/packages/polyfills/array-find) [](https://packagist.org/packages/polyfills/array-find) [](https://packagist.org/packages/polyfills/array-find)
Provides user-land PHP polyfills for the `array_find`, `array_find_key`, `array_any` and `array_all` functions added in PHP 8.4.
Requires PHP 7.1 or later. Not supported on PHP 8.4 because these functions are natively implemented in PHP 8.4.
## Installation
```bash
composer require polyfills/array-find
```
## Usage
Simply use the `array_find`, `array_find_key`, `array_any` and `array_all` functions as if they were declared already.
## Contributions
Contributions are welcome either as a GitHub issue or a PR to this repo.