Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I guess this is what you want</p> <pre><code>$array1 = array('rough', 'smooth', 'coarse'); $array2 = array('shiny', 'matte', 'rough'); $array3 = array('very large', 'large', 'medium', 'small'); generateCcombination(array($array1,$array2,$array3)); function generateCcombination($array) { global $codes, $pos; if(count($array)) { for($i=0; $i&lt;count($array[0]); $i++) { $tmp = $array; $codes[$pos] = $array[0][$i]; $tarr = array_shift($tmp); $pos++; generateCcombination($tmp); } } else { echo join(", ", $codes)."&lt;br/&gt;"; } $pos--; } </code></pre> <p>Output</p> <pre><code>rough, shiny, very large rough, shiny, large rough, shiny, medium rough, shiny, small rough, matte, very large rough, matte, large rough, matte, medium rough, matte, small rough, rough, very large rough, rough, large rough, rough, medium rough, rough, small rough, shiny, very large, smooth rough, shiny, large, smooth rough, shiny, medium, smooth rough, shiny, small, smooth rough, matte, very large, smooth rough, matte, large, smooth rough, matte, medium, smooth rough, matte, small, smooth rough, rough, very large, smooth rough, rough, large, smooth rough, rough, medium, smooth rough, rough, small, smooth rough, shiny, very large, coarse rough, shiny, large, coarse rough, shiny, medium, coarse rough, shiny, small, coarse rough, matte, very large, coarse rough, matte, large, coarse rough, matte, medium, coarse rough, matte, small, coarse rough, rough, very large, coarse rough, rough, large, coarse rough, rough, medium, coarse rough, rough, small, coarse </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload