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 executedb is executedb is executed b is executeda is executed a is executed b is executeda is executedb is executed b is executedb is executedb is executed b is executeda is executed a is executed b is executeda is executedb is executed ANSWER DOWNLOAD EXAMIANS APP
PHP Functions The below statement will return.$Var = substr(""abcdef"", -4, 1); returns "cd" returns "c" returns "f" returns "d" returns "cd" returns "c" returns "f" returns "d" ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function onespan>() {define("const","I am awesome!");echo constant("const");}one(); “const”,”I am awesome!” I am awesome!! const const, I am awesome!! “const”,”I am awesome!” I am awesome!! const const, I am awesome!! ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function addFunction($num1, $num2){$sum = $num1 + $num2;return $sum;}$return_value = addFunction(10, 20);echo "Returned value from the function : " .$return_value Error Returned value from the function : 30 Returned value from the function : Returned value from the function : $return_value Error Returned value from the function : 30 Returned value from the function : Returned value from the function : $return_value 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"); helloblablablabla hello error helloblabla helloblablablabla hello error helloblabla 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 b Error I am a Error I am bI am a I am b Error I am a Error I am bI am a ANSWER DOWNLOAD EXAMIANS APP