Location: PHPKode > scripts > Combination Script > example.php
<?php
require_once("CombinationClass.php");

$values = array("a", "b");

$combinations1 = new CombinationClass($values, false);
$combinations = $combinations1->getCombinations();
 
foreach ($combinations as $comb)
{
    for ($i=0; $i<count($comb); $i++)
    {
        echo $comb[$i]." ";
    }
    echo "<br>";
}
?>
Return current item: Combination Script