kcebilisim adlı üyeden alıntı: mesajı görüntüle
buna benzeri yazdım ama işimi görmedi açıkcası yinede teşekkür ederim
Gönderdiğimde sadece kombinasyon hesabı yok. Onunla da ilgili ;

$words = array('red', 'blue', 'green');   
$num = count($words); 
 
//The total number of possible combinations 
$total = pow(2, $num); 
 
//Loop through each possible combination   
for ($i = 0; $i < $total; $i++) {   
    //For each combination check if each bit is set 
    for ($j = 0; $j < $num; $j++) { 
       //Is bit $j set in $i? 
        if (pow(2, $j) & $i) echo $words[$j] . ' ';       
 } 
    echo '<br />'; 
}
Bu yardımcı olacaktır. Bütün kombinasyonları hesaplamak için.