array ("min_range"=>0, "max_range"=>256)); if (!"> What will be the output of the following PHP code? <?php $var=300; $int_optio array ("min_range"=>0, "max_range"=>256)); if (!"> array ("min_range"=>0, "max_range"=>256)); if (!" /> array ("min_range"=>0, "max_range"=>256)); if (!" />
Sail E0 Webinar
Question
What will be the output of the following PHP code?
<?php
$var=300;
$int_options = array("options"=>array ("min_range"=>0, "max_range"=>256));
if (!filter_var($var, FILTER_VALIDATE_INT, $int_options))
echo("Integer is not valid");
else
echo("Integer is valid");
?>
Options:
A .  No output is returned
B .  Integer is not valid
C .  Integer is valid
D .  Error
Answer: Option B

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers