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"); ?>
A.No output is returned
B.Integer is not valid
C.Integer is valid
D.Error
Answers
Answered by
0
C is the correct one
Similar questions
Biology,
7 months ago
English,
7 months ago
Computer Science,
1 year ago
English,
1 year ago
Biology,
1 year ago