Getting the first instance of an item in an array
<pre><code>$string = array('A','B','C','A','B','C');
</code></pre>

<p>For example first instance of C in $string would be 2</p>

<p>Is there a simpler way to do this than doing a complex loop in php?</p>
