ExamVeda
Login
Home
This question belongs to PHP PHP Filter
PHP Filter
?

What will be the output of the following PHP code?
<?php
$num = "123";
if (!filter_var($num, FILTER_VALIDATE_INT))
    echo("Integer is not valid");
else
    echo("Integer is valid");
?>

Answer & Solution
Correct Answer: Option C
filter_var() – Filters a single variable with a specified filter.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.