-
What will be the output of the following PHP code?
<?php
$n = "102030";
if (!filter_var($n, FILTER_VALIDATE_INT))
echo("Given Integer is not valid");
else
echo("Above Integer is valid");
?>
-
- Error
- Nothing
- Given Integer is valid
- Given Integer is not valid
- None of these
Correct Option: C
filter_var() – Filters a single variable with a specified filter.