Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Validate an integer
SUBMITTED BY:
henry1874w
DATE:
June 21, 2017, 11:44 p.m.
FORMAT:
Text only
SIZE:
215 Bytes
Raw
Download
Tweet
HITS:
236
Go to comments
Report
<!DOCTYPE html>
<html>
<body>
<?php
$int = 100;
if (!filter_var($int, FILTER_VALIDATE_INT) === false) {
echo("Integer is valid");
} else {
echo("Integer is not valid");
}
?>
</body>
</html>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus