SyntaxFix
Write A Post
Hire A Developer
Questions
For PHP version 4 or later versions:
<?PHP $input = 4; if(is_numeric($input)){ // return **TRUE** if it is numeric echo "The input is numeric"; }else{ echo "The input is not numeric"; } ?>