运行 ❯
获取你们自己的 PHP
×
更改方向
更改主题,暗色/亮色
转到 Spaces
<!DOCTYPE html> <html> <body> <?php /* variable to check */ $int = 122; /* min value */ $min = 1; /* max value */ $max = 200; if (filter_var($int, FILTER_VALIDATE_INT, array("options" => array("min_range"=>$min, "max_range"=>$max))) === false) { echo("Variable value is not within the legal range"); } else { echo("Variable value is within the legal range"); } ?> </body> </html>
变量值在合法范围内