 <p>The following will assign a value to $Count which wil be the number of objects in the array that match the word: "parkett".</p> <pre><code>$Count = array_count_values($YourArray, "parkett"); </code></pre>