PHP code example of freezemage0 / array_find
1. Go to this page and download the library: Download freezemage0/array_find library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
freezemage0 / array_find example snippets
use function Freezemage\ArrayUtils\find as array_find;
$items = [1, 2, 3];
array_find($items, fn (int $item): bool => $item % 2 === 0); // prints 2