Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code>$array1 = array('rough', 'smooth', 'coarse'); $array2 = array('shiny', 'matte', 'rough'); $array3 = array('very large', 'large', 'medium', 'small'); $array=array_merge($array1,$array2,$array3); $combinations=array(); for($x=0;$x&lt;(count($array)-2);$x++) { $a=$array[$x]; for ($y=$x+1;$y&lt;count($array);$y++) { $b=$array[$y]; for ($z=$y+1;$z&lt;count($array);$z++) { $c=$array[$z]; $combinations[]="$a, $b, $c"; } } } </code></pre> <p>This outputs every possible combination of all the values, without repeating any. As shown below:</p> <pre><code>Array ( [0] =&gt; rough, smooth, coarse [1] =&gt; rough, smooth, shiny [2] =&gt; rough, smooth, matte [3] =&gt; rough, smooth, rough [4] =&gt; rough, smooth, very large [5] =&gt; rough, smooth, large [6] =&gt; rough, smooth, medium [7] =&gt; rough, smooth, small [8] =&gt; rough, coarse, shiny [9] =&gt; rough, coarse, matte [10] =&gt; rough, coarse, rough [11] =&gt; rough, coarse, very large [12] =&gt; rough, coarse, large [13] =&gt; rough, coarse, medium [14] =&gt; rough, coarse, small [15] =&gt; rough, shiny, matte [16] =&gt; rough, shiny, rough [17] =&gt; rough, shiny, very large [18] =&gt; rough, shiny, large [19] =&gt; rough, shiny, medium [20] =&gt; rough, shiny, small [21] =&gt; rough, matte, rough [22] =&gt; rough, matte, very large [23] =&gt; rough, matte, large [24] =&gt; rough, matte, medium [25] =&gt; rough, matte, small [26] =&gt; rough, rough, very large [27] =&gt; rough, rough, large [28] =&gt; rough, rough, medium [29] =&gt; rough, rough, small [30] =&gt; rough, very large, large [31] =&gt; rough, very large, medium [32] =&gt; rough, very large, small [33] =&gt; rough, large, medium [34] =&gt; rough, large, small [35] =&gt; rough, medium, small [36] =&gt; smooth, coarse, shiny [37] =&gt; smooth, coarse, matte [38] =&gt; smooth, coarse, rough [39] =&gt; smooth, coarse, very large [40] =&gt; smooth, coarse, large [41] =&gt; smooth, coarse, medium [42] =&gt; smooth, coarse, small [43] =&gt; smooth, shiny, matte [44] =&gt; smooth, shiny, rough [45] =&gt; smooth, shiny, very large [46] =&gt; smooth, shiny, large [47] =&gt; smooth, shiny, medium [48] =&gt; smooth, shiny, small [49] =&gt; smooth, matte, rough [50] =&gt; smooth, matte, very large [51] =&gt; smooth, matte, large [52] =&gt; smooth, matte, medium [53] =&gt; smooth, matte, small [54] =&gt; smooth, rough, very large [55] =&gt; smooth, rough, large [56] =&gt; smooth, rough, medium [57] =&gt; smooth, rough, small [58] =&gt; smooth, very large, large [59] =&gt; smooth, very large, medium [60] =&gt; smooth, very large, small [61] =&gt; smooth, large, medium [62] =&gt; smooth, large, small [63] =&gt; smooth, medium, small [64] =&gt; coarse, shiny, matte [65] =&gt; coarse, shiny, rough [66] =&gt; coarse, shiny, very large [67] =&gt; coarse, shiny, large [68] =&gt; coarse, shiny, medium [69] =&gt; coarse, shiny, small [70] =&gt; coarse, matte, rough [71] =&gt; coarse, matte, very large [72] =&gt; coarse, matte, large [73] =&gt; coarse, matte, medium [74] =&gt; coarse, matte, small [75] =&gt; coarse, rough, very large [76] =&gt; coarse, rough, large [77] =&gt; coarse, rough, medium [78] =&gt; coarse, rough, small [79] =&gt; coarse, very large, large [80] =&gt; coarse, very large, medium [81] =&gt; coarse, very large, small [82] =&gt; coarse, large, medium [83] =&gt; coarse, large, small [84] =&gt; coarse, medium, small [85] =&gt; shiny, matte, rough [86] =&gt; shiny, matte, very large [87] =&gt; shiny, matte, large [88] =&gt; shiny, matte, medium [89] =&gt; shiny, matte, small [90] =&gt; shiny, rough, very large [91] =&gt; shiny, rough, large [92] =&gt; shiny, rough, medium [93] =&gt; shiny, rough, small [94] =&gt; shiny, very large, large [95] =&gt; shiny, very large, medium [96] =&gt; shiny, very large, small [97] =&gt; shiny, large, medium [98] =&gt; shiny, large, small [99] =&gt; shiny, medium, small [100] =&gt; matte, rough, very large [101] =&gt; matte, rough, large [102] =&gt; matte, rough, medium [103] =&gt; matte, rough, small [104] =&gt; matte, very large, large [105] =&gt; matte, very large, medium [106] =&gt; matte, very large, small [107] =&gt; matte, large, medium [108] =&gt; matte, large, small [109] =&gt; matte, medium, small [110] =&gt; rough, very large, large [111] =&gt; rough, very large, medium [112] =&gt; rough, very large, small [113] =&gt; rough, large, medium [114] =&gt; rough, large, small [115] =&gt; rough, medium, small [116] =&gt; very large, large, medium [117] =&gt; very large, large, small [118] =&gt; very large, medium, small [119] =&gt; large, medium, small ) </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.
 

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