Is there a way if I count the number of tags inside the for loop for example.
if($tags == 0){
echo 'no tags entered.';
} else if($tags == 1){
echo $tags . 'tag entered';
} else {
echo $tags . 'tags entered';
}
Here is my code.
for ($x = 0; $x < count($tags); $x++){
if ($tags[$x] != '') {// get rid of empty tags
echo ' ' . strtolower(strip_tags($tags[$x])) . ',';
}//end of get rid of empty tags
}