PHP code example of blainesch / prettyarray
1. Go to this page and download the library: Download blainesch/prettyarray 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/ */
blainesch / prettyarray example snippets
use prettyArray\PrettyArray;
$arr = new PrettyArray(range(1,6));
$arr->group_by_(function($key, &$value) {
return ($value % 3);
});
print_r($arr->to_a());