PHP code example of sikaradev-php-utils / helper

1. Go to this page and download the library: Download sikaradev-php-utils/helper 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/ */

    

sikaradev-php-utils / helper example snippets




$filteredItems = Collection::of(['index.php', 'data/country.json'])
->filter((int $k,string $v)=>$v==1)


$result = Collection::of(['index.php', 'data/country.json'])
    ->filter(fn(int $k, string $path) => $k == 0)
    ->map(fn(string $v) => strtoupper($v))
    ->get();