array("min_range"=>$min,"max_range"=>$max))) === false){
echo ("The number is valid");
}else{
echo ("The number is not valid");
}
?>Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
先 $arr = range(1,100);
foreach($arr as $k $v)
{
if($int === $v)
{
echo '在范围内';
}else{
echo '不在';
}
这样行吗?
把'FILTER_VALIDATE_INT'去掉引号就行了