PHP Functions What will be the output of the following PHP code?function foo($msg) {echo "$msg";}$var1 = "foo";$var1("will this work"); Error 0 $msg Will this work Error 0 $msg Will this work ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function a() {function b() {echo 'I am b';}echo 'I am a';}a();a(); I am bI am a I am a Error I am b Error I am bI am a I am a Error I am b Error ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?$x = 75;$y = 25;function addition(){$GLOBALS['z'] = $GLOBALS['x'] + $GLOBALS['y'];}addition();echo $z; error 100 25 75 error 100 25 75 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Above usleep() function pauses PHP for .usleep(1000000); 100 microseconds 1 microseconds 1 second 10 seconds 100 microseconds 1 microseconds 1 second 10 seconds ANSWER DOWNLOAD EXAMIANS APP
PHP Functions The below statement will return.$Var = substr(""abcdef"", -4, 1); returns "c" returns "d" returns "f" returns "cd" returns "c" returns "d" returns "f" returns "cd" ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function TV($string){echo "my favourite TV show is ".$string;function b() {echo " I am here to spoil this code";}}a("Sherlock");b(); None of the mentioned my favourite TV show is SherlockI am here ro spoil this code I am here to spoil this code Error None of the mentioned my favourite TV show is SherlockI am here ro spoil this code I am here to spoil this code Error ANSWER DOWNLOAD EXAMIANS APP