PHP Functions What will be the output of the following PHP code?function foo($msg) {echo "$msg";}$var1 = "foo";$var1("will this work"); Error $msg Will this work 0 Error $msg Will this work 0 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?$op2 = "blabla"; function foo($op1) {echo $op1;echo $op2;}foo("hello"); hello Error helloblabla helloblablablabla hello Error helloblabla helloblablablabla ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function sum($num1, $num2) {$total = $num1 + $num2;echo "cos($total)";}sum(5,-5); -0.5 0 0.5 1 -0.5 0 0.5 1 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';}b();a(); I am bI am a Error I am a Error I am b I am bI am a Error I am a Error I am b 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 Towe Pa55 Time Pa55 Time Pass Towe Pass Towe Pa55 Time Pa55 Time Pass ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function calc($num1, $num2){$total = $num1 * $num2;}$result = calc(42, 0);echo $result; 0 Error 84 42 0 Error 84 42 ANSWER DOWNLOAD EXAMIANS APP