Get the first key for an element in PHP?
<p>I'm trying to add an extra class tag if an element / value is the first one found in an array.  The problem is, I don't really know what the key will be...</p>

<p>A minified example of the array</p>

<pre><code>Array (
    [0] =&gt; Array(
            id =&gt; 1
            name = Miller
            )
    [1] =&gt; Array(
                id =&gt; 4
                name = Miller
            )
    [2] =&gt; Array(
                id =&gt; 2
                name =&gt; Smith
    [3] =&gt; Array(
                id =&gt; 7
                name =&gt; Jones
            )
    [4] =&gt; Array(
                id =&gt; 9
                name =&gt; Smith
            )
)
</code></pre>

<p>So, if it's the first instance of "name", then I want to add a class.</p>
