What will be the output of the following PHP code?<br/>function calc($price, $tax="") {<br/>$total = $price + ($price * $tax);<br/>echo "$total";<br/>}<br/>calc(42); 0 84 42 Error 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 time($string)<br/>{<br/>echo strtr("Towe Pa55", "ow5", $string);<br/>}<br/>time("ims"); Time Pa55 Towe Pass Time Pass Towe Pa55 TRUE ANSWER : ? YOUR ANSWER : ?
. . . . . converts the keys of an array into values and the values into keys. array_flips() array_flip() array_trans() array_transpose() TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>function onespan>() {<br/>define("const","I am awesome!");<br/>echo constant("const");<br/>}<br/>one(); “const”,”I am awesome!” const, I am awesome!! const I am awesome!! TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>function a() {<br/>function b() {<br/>echo 'I am bb';<br/>}<br/>echo 'I am a';<br/>}<br/>b();<br/>a(); I am bb I am bI am a Error I am a Error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>echo ucwords("i love all country"); I love all Country i love all Country I love all country I Love All Country TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$str = "Hello world. It's a beautiful day.";<br/>print_r (explode(" ",$str)); Array ( [0] => Hello [1] => world. [2] => It’s [3] => a [4] => beautiful [5] => day. ) Array ( [0] => Hello [0] => world. [0] => It’s [0] => a [0] => beautiful [0] => day. ) Array ( [1] => Hello [2] => world. [3] => It’s [4] => a [5] => beautiful [6] => day. ) Hello world. It’s a beautiful day TRUE ANSWER : ? YOUR ANSWER : ?
Returning values from functions may include ..... Arrays None of above Both A & B Objects TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 75;<br/>$y = 25;<br/>function addition()<br/>{<br/>$GLOBALS['z'] = $GLOBALS['x'] + $GLOBALS['y'];<br/>}<br/>addition();<br/>echo $z; 100 75 25 error TRUE ANSWER : ? YOUR ANSWER : ?