Ben örneğin for döngüsü içindeki etiketlerin sayısını ise bir yolu var mı.
if($tags == 0){
echo 'no tags entered.';
} else if($tags == 1){
echo $tags . 'tag entered';
} else {
echo $tags . 'tags entered';
}
İşte benim kodudur.
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
}