What will be the output of the following PHP code?<br/>function one() {<br/>echo " this works";<br/>function two() {<br/>echo "this too works";<br/>}<br/>}<br/>one();<br/>two(); this works this too works this worksthis too works error this works 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(); No Output 111 Hello world! o world! TRUE ANSWER : ? YOUR ANSWER : ?
. . . . returns a new DateTime object. date_create() date() date_sunrise() getdate() TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function TV($string) {<br/>echo "my favourite TV show is ".$string;<br/>function b() {<br/>echo " I am here to spoil this code";<br/>}<br/>}<br/>function b() {<br/>echo " I am here to spoil this code";<br/>}<br/>b(); Error None of the mentioned my favourite TV show isI am here to spoil this code I am here to spoil this code TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>function b() {<br/>echo "b is executed";<br/>}<br/>function a()<br/>{<br/>b();<br/>echo "a is executed";<br/>b();<br/>}<br/>a(); b is executeda is executed a is executed b is executedb is executedb is executed b is executeda is executedb is executed TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following PHP functions can be used for generating unique id’s? md5() uniqueid() mdid() id() TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>echo stripos("I love php, I love php too!","PHP"); 10 3 8 7 TRUE ANSWER : ? YOUR ANSWER : ?
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 contact@examians.com TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function constant()<br/>{<br/>define("GREETING", "Welcome to Narnia",true);<br/>echo greeting;<br/>} GREETING greeting Welcome to Narnia ERROR TRUE ANSWER : ? YOUR ANSWER : ?
Output will be:$array = array(0, 1, 2);$array = array_pad($array, -6, ‘NEW’); Array ( [-1] => NEW [-2] => NEW [-3] => NEW [-4] => 0 [-5] => 1 [-6] => 2 ) Array ( [1] => NEW [2] => NEW [3] => NEW [4] => 0 [5] => 1 [6] => 2 ) Array ( [0] => NEW [1] => NEW [2] => NEW [3] => 0 [4] => 1 [5] => 2 ) Array ( [0] => NEW [-1] => NEW [-2] => NEW [-3] => 0 [-4] => 1 [-5] => 2 ) TRUE ANSWER : ? YOUR ANSWER : ?