function isId($var) {
return (is_numeric($var) && (intval($var) == $var) && $var > 0);
}
ID #1108
function isId (test if value is integer and greater than 0)
Značky: -
Související záznamy:
- aktualizace
- php: get IP address even if client is behind proxy
- funkce br2nl
- test emailové adresy regulárním výrazem
- daemontools
Můžete přidat komentář k odpovědi