Source Code:
(back to article)
<?php $int = 200; if (filter_var($int, FILTER_VALIDATE_INT) === 0 || !filter_var($int, FILTER_VALIDATE_INT) === false) { echo "Valid integer"; } else { echo "Invalid Integer"; } ?>
Result:
Report an issue