Seperate string by array
<p>I have no idea on how to do this, it'd probably use an explode but that'd not do exactly as I wanted.</p>

<p>Say I have a string:</p>

<pre><code>a,1,1,0,0;0,1,1,0,0;r,1,1,0,0;
</code></pre>

<p>and I have an array:</p>

<pre><code>a = atv
p = 330c
U = blista
c = BMW
D = bobcat
r = charger
</code></pre>

<p>I'd like it so that when it's called as a function on that string like <code>seperateString($string);</code> that it'd return something like "atv, charger"</p>

<p>I've tried some searching but to no avail have I found something which would return a string specific to the array.</p>

<p>Yours Sincerely,
Harry</p>
