if($_SERVER['REQUEST_URI'] == "/id".и тут должно быть написано любое число."") { выводим результат } |
1 answer
is_int() + is_float() :
$a = 1.0; if(is_int($a) || is_float($a)) { //выводим результат; } - does not work - avp
- I have already done everything through a regular expression - avp
- Try is_numeric () And if it's not difficult and possible, please post the regularity code, maybe someone will need it too - ghost rider
- preg_match ("| ^ [\ d] + $ |", write a variable here) - avp
|