Array separating output data
<p>one other question</p>

<pre><code>$_SESSION['files'][] = $sid . '-' . $data['Id'] . '-reg'
$_SESSION['files'][] = $sid . '-' . $data['Id'] . '-nor'
...
</code></pre>

<p>the files session should look like this when echoed</p>

<pre><code>317e2b5a2376dd19cb5fc431bced949a-56-reg
</code></pre>

<p>how do i take $_SESSION['files'][] and separate the data into these variable $sid, $id, $type using - and the separator... something like this.</p>

<pre><code>$sid = "317e2b5a2376dd19cb5fc431bced949a";
$id = "56";
$type = "reg";
</code></pre>

<p>following <strong>codaddict</strong> below example something like this would be right correct?</p>

<pre><code>for($i=0;$i&lt;count($_SESSION['files']);$i++) {
list($sid,$id,$type) = explode('-',$_SESSION['files'][$i]);
...
}
</code></pre>
