PHP code example of lunkkun / permutations-generator
1. Go to this page and download the library: Download lunkkun/permutations-generator 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/ */
lunkkun / permutations-generator example snippets
$array = range(0, 2);
$generator = new \Lunkkun\PermutationsGenerator\PermutationsGenerator($array);
foreach ($generator as $permutation) {
print_r($permutation);
}