PHP all combinations into array
<p>Let's say I have two variables, strings converted to arrays</p>

<pre><code>$VAR_1 = '1-1:2-1';
$VAR_1 = Explode(':', $VAR_1);

$VAR_2 = '3-1:4-1:2-2:2-3:2-4';
$VAR_2 = Explode(':', $VAR_2);
</code></pre>

<p>Now I want 'all' combinations of VAR_1 and VAR_2 mixed set into a new array $COMB</p>

<p>But at least 1, or both variable(s) of VAR_1 must be in the new array, and the combined string must consists of 5 variables.</p>

<p>I need ALL combinations, also duplicate, but which are in a different order.</p>

<p>How to achieve this ?</p>

<p>Scenario: Poker Game (VAR_1 = player cards (color - number) VAR_2 = table cards)</p>
