. . . . . converts the keys of an array into values and the values into keys. array_trans() array_flips() array_transpose() array_flip() TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following PHP functions can be used for generating unique id’s? uniqueid() md5() id() mdid() TRUE ANSWER : ? YOUR ANSWER : ?
It is always necessary to use parentheses with the print function. True False 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; error 25 75 100 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function mine($num)<br/>{<br/>$num = 2 + $num;<br/>echo $num;<br/>}<br/>mine(3); $num None of the mentioned 3 5 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>function a() {<br/>function b() {<br/>echo 'I am b';<br/>}<br/>echo 'I am a';<br/>}<br/>b();<br/>a(); I am a Error Error I am bI am a I am b TRUE ANSWER : ? YOUR ANSWER : ?
strlen() returns the length of the string on success and . . . . if the string is empty. NULL 0 -1 Garbage value TRUE ANSWER : ? YOUR ANSWER : ?
The arguments in a function are evaluated from ..... sometimes left to right and sometimes right to left left to right right to left Always right to left TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function start($string)<br/>{<br/>if ($string < 45)<br/>return 20;<br/>else<br/>return 40;<br/>}<br/>$t = start(90);<br/>if ($t < 20)<br/>{<br/>echo "Have a good day!";<br/>}<br/>else<br/>{<br/>echo "Have a good night!";} Have a good day! ERROR Have a good night! None of the mentioned TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>function sum($num1, $num2) {<br/>$total = $num1 + $num2;<br/>echo "cos($total)";<br/>}<br/>sum(5,-5); 1 0 -0.5 0.5 TRUE ANSWER : ? YOUR ANSWER : ?