PHP count question
<p>Is there a way if I count the number of tags inside the for loop for example.</p>

<pre><code>if($tags == 0){
    echo 'no tags entered.';
} else if($tags == 1){
    echo $tags . 'tag entered';
} else {
    echo $tags . 'tags entered';
}
</code></pre>

<p>Here is my code.</p>

<pre><code>for ($x = 0; $x &lt; count($tags); $x++){

    if ($tags[$x] != '') {// get rid of empty tags
        echo ' ' . strtolower(strip_tags($tags[$x])) . ',';
    }//end of get rid of empty tags

}
</code></pre>
