Мой код не работает: правильно ли считать значения в поле КОММЕНТАРИИ?Как исправить длину charectors по IF (COUNT())
//function to count the entered text in COMMENTS section
function isEligible($comments)
{
if(count($comments <12 && $comments > 40))
{
print "Plz enter the value between 12_40";
return false;
}
return true;
}
[strlen] (http://www.php.net/manual/en/function.strlen.php) –
Каков тип переменной '$ comments' - массив или строка? – mitkosoft
@HankyPanky да, вы правы, typo error –