This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// array from which to create combinations | |
$arr = ['a','b','c','1','2','3']; | |
// pick specific case of minimum and maximum length of 5 and just get it done | |
function combinationsOf5_1($arr) { | |
$results = []; | |
for ($i = 0; $i < count($arr); $i++) { | |
$first = $arr[$i]; | |
for ($j = 0; $j < count($arr); $j++) { |