Php Interview Questions & Answers: part9



Php Interview QUESTIONS AND ANSWERS :: part9 : 6 to 10

Following PHP Multiple choice objective type questions and answers will help you in many software compnaies written examinations and inteview 2015 :

6.What will be the output of the following PHP code?

No output is returned
Integer is not valid
Integer is valid
Error

7.What will be the output of the following PHP code? 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"); ?>

No output is returned
Integer is not valid
Integer is valid
Error

8.If the input variable is a string like this “https://www.saåånfoøøundry.com/”, the $url variable after the sanitizing will look like

https://www.saåånfoøøundry.com/
https://www.saaanfoooundry.com/
https://www.saånfoøundry.com/
https://www.sanfoundry.com/

9.Which one of the following filter is used to filter several variables with the same or different filters?

filter_var_array()
filter_var()
filter_input
filter_input_array

10.What will be the output of the following PHP code?

Error
Username must be all lowercase!
Username is all lowercase!
No Output is returned

More Php Interview QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
The only place where success comes before work is in the dictionary.- Vidal Sassoon