-2
コードが機能していません:COMMENTSボックスの値を数えるのは正しいですか?IF(COUNT())でCharectorの長さを修正する方法
//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はい、あなたは正しいです。タイプミス –