PHP code example of rixxi / utils
1. Go to this page and download the library: Download rixxi/utils 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/ */
rixxi / utils example snippets
use Rixxi\Utils\Batch;
$batch = new Batch(function ($values) {
echo implode($values), PHP_EOL;
}, $limit = 80);
$lines = 10;
for ($x = $limit * $lines; $x-- > 0;) {
$batch[] = chr(ord('A') + rand(0, 26 /* ord('Z') - ord('A') */));
}
$batch->flush();
unset($batch);