Foreach multiple select outputs
<p>I have a form which has a multiple option selector in it:</p>

<pre><code>&lt;td&gt;
   &lt;input type="checkbox" name="chk[]" checked="checked" /&gt;
&lt;/td&gt;
&lt;td&gt;
   &lt;select id="loyaltyType" required="required" name="VX_TYPE[]"&gt;
      &lt;option&gt;Choose Type&lt;/option&gt;
      &lt;option value="A"&gt;A&lt;/option&gt;
      &lt;option value="B"&gt;B&lt;/option&gt;
      &lt;option value="C"&gt;C&lt;/option&gt;
      &lt;option value="D"&gt;D&lt;/option&gt;
   &lt;/select&gt;
&lt;/td&gt;
&lt;td&gt;
   &lt;input type="text" required="required" class="small"  name="VX_NAME[]"&gt;
&lt;/td&gt;
&lt;td&gt;
   &lt;input type="text" required="required" class="small"  name="VX_EMAIL[]"&gt;
&lt;/td&gt;
&lt;td&gt;
   &lt;select name="VX_LOCATION[]" multiple&gt;
      &lt;option value="London"&gt;London&lt;/option&gt;
      &lt;option value="New York"&gt;New York&lt;/option&gt;
      &lt;option value="Paris"&gt;Paris&lt;/option&gt;
      &lt;option value="Tokyo"&gt;Tokyo&lt;/option&gt;
   &lt;/select&gt;
&lt;/td&gt;
</code></pre>

<p>I would like the form to print with the following input/output:</p>

<p><strong>Input:</strong> </p>

<p>B, sample name, sample email, New York + Toyko selected</p>

<p>D, sample name2, sample email2, London + Toyko selected</p>

<p><strong>Output:</strong></p>

<p>B, sample name, sample email, New York, Tokyo.</p>

<p>D, sample name2, sample email2, London, Tokyo.</p>

<p>However the actual output I am getting is as follows:</p>

<p><strong>Actual output:</strong></p>

<p>B, sample name, sample email, New York.</p>

<p>D, sample name2, sample email2, Tokyo.</p>

<p>This is the code for the output so far that does not work:</p>

<pre><code>&lt;?php foreach($VX_TYPE as $a =&gt; $b){ ?&gt;
&lt;p&gt;
   &lt;?php echo $VX_TYPE[$a]; ?&gt;, &lt;?php echo $VX_NAME[$a]; ?&gt;, &lt;?php echo $VX_EMAIL[$a]; ?&gt;, &lt;?php echo $VX_LOCATION[$a]; ?&gt;
&lt;/p&gt;
&lt;?php } ?&gt;
</code></pre>

<p>Any suggestions of how to get this working would be great!</p>