Hallo,
ich möchte alle möglichen Kombination auflisten lassen.
meine Lösung funktioniert leider aber noch nicht:
	
Vielleicht kann mir ja jemand ein wenig weiterhelfen.
							
						
					ich möchte alle möglichen Kombination auflisten lassen.
meine Lösung funktioniert leider aber noch nicht:
PHP-Code:
	
	
$finalnumber = 3 * 3 * 3 ;
$kombinationen = Array();
$input = Array("eins", "zwei", "drei");
$anzahl_an_kombinationen = 0;
while($anzahl_an_kombinationen != $finalnumber)
 {
   $neue_kombination_temp = shuffle($input);
   $neue_kombination = $neue_kombination_temp[0];
   for($i=1; $i<count($input); $i++)
    {
     $neue_kombination .= $neue_kombination_temp[$i];
    }
    
   if(!in_array($neue_kombination, $kombinationen))
    {
    $kombinationen[] = $neue_kombination;
    } 
   $anzahl_an_kombinationen = count($kombinationen);
   echo $neue_kombination."<br>";
 } 
 
          





Kommentar