Array keys starting with characters
<p>I have an array with terms and definitions:</p>

<pre><code>$myArray = array("apple" =&gt; "Fruit that grows ...", "car" =&gt; "Vehicle on four...");  
</code></pre>

<p>How do I determine if I have words starting with a particular letter in $myArray, say, "c" for car and add a class to corresponding letter in my ABC list that is generated via a loop:</p>

<pre><code>foreach(range('A','Z') as $i) {
    echo '&lt;div&gt;'. $i .'&lt;/div&gt;';
}
</code></pre>

<p>UPDATE:</p>

<p>Expected output:</p>

<pre><code>&lt;div class="match"&gt;A&lt;/div&gt;
&lt;div&gt;B&lt;/div&gt;
&lt;div class="match"&gt;C&lt;/div&gt;
</code></pre>
