$error = false; if (count($words) > 4) { # too many words per tag $error = true; } foreach ($words as $word) { if (vbstrlen($word) > 40) { # word in tag too long $error = true;