basic question about php multiple FOREACH loops
<p>I have few FOREACH loops in php;</p>

<pre><code>$c1 = 1;
$c2 = 1;
$c3 = 1;

foreach ($someArray as $a){
    echo $a;
    if (sizeof($someArray != $c1){
     echo " / ";
    }
    $c1++;
}

foreach ($otherArray as $b){
    echo $b;
    if (sizeof($otherArray != $c2){
     echo ", ";
    }
    $c2++;
}

// etc.
</code></pre>

<p>This seems somehow stupid, of course =) Is there any way to avoid declaring variables with same values and to use them in many FOREACH loops?
Thanks in advance for any help!</p>
