Copy CodeThe code is as follows:
———————————————————————————–
Function name: Checklengthbetween ($C _char, $I _len1, $I _len2=100)
Function: Determines whether the string is within the specified length
Parameters: $C _char (string to be detected)
$I _len1 (the lower bound of the target string length)
$I _len2 (upper limit of target string length)
Return Value: Boolean value
Remark: None
———————————————————————————–
function Checklengthbetween ($C _cahr, $I _len1, $I _len2=100)
{
$C _cahr = Trim ($C _cahr);
if (strlen ($C _cahr) < $I _len1) return false;
if (strlen ($C _cahr) > $I _len2) return false;
return true;
}
———————————————————————————–
http://www.bkjia.com/PHPjc/321254.html www.bkjia.com true http://www.bkjia.com/PHPjc/321254.html techarticle Copy the code as follows://——————————————————————————— –//function Name: Checklengthbetween ($C _char, $I _len1, $I _len2=100)/...