Excluding numbers from an array
<p>The code below returns a table with a row for every word or number that appears in <code>$commentstring</code>.  Each word or number appears as <code>$word</code> in the table below.  How can I exclude numbers?</p>

<pre><code>$words = explode(" ", $commentstring);



    $result = array_combine($words, array_fill(0, count($words), 0));

    arsort($words);


    foreach($words as $word) {
    $result[$word]++;

    arsort($result);

    }


    echo "&lt;table&gt;";

    foreach($result as $word =&gt; $count1) {


    echo '&lt;tr&gt;';    
    echo '&lt;td&gt;';
    echo "$word";
    echo '&lt;/td&gt;';

    echo '&lt;td&gt;';
    echo "$count1 ";
    echo '&lt;/td&gt;';

    echo '&lt;/tr&gt;';

    }

    echo "&lt;/table&gt;";
</code></pre>
