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; 75 100 error 25 75 100 error 25 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";}}function b() {echo " I am here to spoil this code";}b(); None of the mentioned Error my favourite TV show isI am here to spoil this code I am here to spoil this code None of the mentioned Error my favourite TV show isI am here to spoil this code I am here to spoil this code ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function b() {echo "b is executed";}function a(){b();echo "a is executed";b();}a(); b is executeda is executed b is executedb is executedb is executed a is executed b is executeda is executedb is executed b is executeda is executed b is executedb is executedb is executed a is executed b is executeda is executedb is executed ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function time($string){echo strtr("Towe Pa55", "ow5", $string);}time("ims"); Towe Pass Time Pass Towe Pa55 Time Pa55 Towe Pass Time Pass Towe Pa55 Time Pa55 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function foo($msg) {echo "$msg";}$var1 = "foo";$var1("will this work"); Will this work 0 Error $msg Will this work 0 Error $msg ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will happen in this function call?function calc($price, $tax) {$total = $price + $tax;}$pricetag = 15;$taxtag = 3;calc($pricetag, $taxtag); Default Argument Value Type Hinting Call By Value Call By Reference Default Argument Value Type Hinting Call By Value Call By Reference ANSWER DOWNLOAD EXAMIANS APP