PHP code example of chebur / array-functions
1. Go to this page and download the library: Download chebur/array-functions 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/ */
chebur / array-functions example snippets
$array = [
0 => 10,
1 => 20,
2 => 30,
];
$result = array_map_key(function($key, $value) {}, $array);