gs gs107 Error Handling and Exception Handling - PHP Filter - Quiz No.1
gs gs107 PHP: Hypertext Preprocessor Quiz
This quiz belongs to book/course code gs gs107 PHP: Hypertext Preprocessor of gs organization. We have 73 quizzes available related to the book/course PHP: Hypertext Preprocessor. This quiz has a total of 10 multiple choice questions (MCQs) to prepare and belongs to topic Error Handling and Exception Handling. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.
NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.
i) Cookies ii) Input data from a form iii) Server Variables iv) Web services data
<?php $num = "123"; if (!filter_var($num, FILTER_VALIDATE_INT)) echo("Integer is not valid"); else echo("Integer is valid"); ?>
<?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"); ?>
<?php function convertSpace($string) { return str_replace("_", " ", $string); } $string = "Peter_is_a_great_guy!"; echo filter_var($string, FILTER_CALLBACK, array("options"=>"convertSpace")); ?>