Understanding the basics of multidimensional arrays
<p>I am new to using multidimensional arrays with php, I have tried to stay away from them because they confused me, but now the time has come that I put them to good use. I have been trying to understand how they work and I am just not getting it. </p>

<p>What I am trying to do is populate results based on a string compare function, once I find some match to an 'item name', I would like the first slot to contain the 'item name', then I would like to increment the priority slot by 1.</p>

<p>So when when I'm all done populating my array, it is going to have a variety of different company names, each with their respective priority...</p>

<p>I am having trouble understanding how to declare and manipulate the following array:</p>

<pre><code>$matches = array(
    'name'=&gt;array('somename'),
    'priority'=&gt;array($priority_level++)
);
</code></pre>
