What will be the output of the following PHP code ?<br/>function email()<br/>{<br/>$email = ’contact@examians.com’;<br/>$new = strstr($email, ‘@');<br/>echo $new;<br/>}<br/>email(); examians.com contact@examians.com @examians.com contact TRUE ANSWER : ? YOUR ANSWER : ?
Returning values from functions may include ..... None of above Arrays Both A & B Objects TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$str = addslashes('What does "yolo" mean?');<br/>echo($str); What does ”yolo” mean? What does /”yolo/” mean? What does ”yolo” mean? What does ”yolo” mean? TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>function do($myString) {<br/>echo strpos($myString, "donkey",0);<br/>}<br/>do("The donkey looks like a horse."); 5 None of the mentioned 4 2 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function string()<br/>{<br/>echo strstr("Hello world!", 111);<br/>}<br/>string(); Hello world! No Output 111 o world! TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function TV($string)<br/>{<br/>echo "my favourite TV show is ".$string;<br/>function b() <br/>{<br/>echo " I am here to spoil this code";<br/>}<br/>}<br/>a("Sherlock");<br/>b(); my favourite TV show is SherlockI am here ro spoil this code I am here to spoil this code Error None of the mentioned TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following is the right way of defining a function in PHP? function fumctionName(parameters) { function body } data type functionName(parameters) { function body } function { function body } functionName(parameters) { function body } TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following PHP functions can be used to find files? file() glob() get_file() fold() TRUE ANSWER : ? YOUR ANSWER : ?
A function in PHP which starts with ______ (double underscore) is know as. Magic Function Default Function Inbuilt Function User Defined Function TRUE ANSWER : ? YOUR ANSWER : ?
Type Hinting was introduced in which version of PHP? PHP 5.3 PHP 5 PHP 6 PHP 4 TRUE ANSWER : ? YOUR ANSWER : ?