php associative existence check
<p>I have </p>

<pre><code>$a = array('ten','ten','ten','three','two','one','ten','four','four');
$b= array_count_values ($a);
</code></pre>

<p>I'm trying to return the number of times a particular string $c appears in $a if $c is found.</p>

<p>So for example:</p>

<p>if $c='four' Then I need output 2</p>

<p>if $c='fout' Then I need output as 'not found'</p>

<p>I'm new to php and am having trouble with the syntax, especially since this is an associative array.  </p>

<p>How do I do this?</p>
