Pulling data from a multidimensional array based on data in a sub-array
<p>I have a flat delimited file structured like this (real one is much larger):</p>

<pre><code>"15616-01","joe,15616,15616-01.net"
"15616-02","harry,15616,15616-02"
"3874-03","mike,joe,paul,frank,bill"
"6487-10","tony,joe"
"6510-14","phil"
"12631-08","steve"
</code></pre>

<p>I need to pull the file into a multi-dimensional array, run through the sub-array currently located in the second field, and then return the <strong>first</strong> field for those items that match a search string. So if someone searched for "joe", I'd want to return:</p>

<pre><code>15616-01
3874-03
6487-10
</code></pre>

<p>Then I am going to take those items, maybe truncate everything after the hyphen, and pass them on to a MySQL database and return those items only. I am <strong>very</strong> new to programming, and could use some pointers on where to start with this whole thing. Forgive me if this is kinda basic.</p>
