PHP code example of srph / map-range
1. Go to this page and download the library: Download srph/map-range 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/ */
srph / map-range example snippets
SRPH\MapRange\map_range(function($index) {
// do something
}, $from, $to);
use function SRPH\MapRange\map_range;
map_range(function($index) {
// do something
}, $from, $to);
foreach(range(0, 10) as $i) {
// ..
}
for ( $i = 0; $i < 10; $i++ ) {
//
}