📜  在 php 代码示例中设置最小字符值

📅  最后修改于: 2022-03-11 14:54:02.506000             🧑  作者: Mango

代码示例1
if (strlen($input) < 12)
{
   echo "Input is too short, minimum is 12 characters (20 max).";
}
elseif(strlen($input) > 20)
{
   echo "Input is too long, maximum is 20 characters.";
}