array manipulation help in php making phrases
<p>I will have four word list arrays.</p>

<pre><code>$array1 = array('red','blue','green');//it can have more elements

$array2 = array('ball','radio','bat');

$array3 = array('free','$10','bonus','2free');

$array4 = array('Ny','california');
</code></pre>

<p>using these 4 arrays of words which can have 0 to any no of elements in them for example above the out put needs to be</p>

<pre><code>red ball free Ny

red ball free california

red ball $10 Ny

red ball $10 california

red ball bonus Ny

red ball bonus california

red ball 2free Ny

red ball 2free california

red radio free Ny
</code></pre>

<p>..................................similarly for all elements possibly in array</p>

<p>it was easy for me up to 2 but with 4 arrays i am a bit confused to achieve it.
please help </p>
