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(); Error I am b I am a Error I am bI am a Error I am b I am a Error I am bI am a ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?echo lcfirst("welcome to my India"); Welcome to my india welcome to my india Welcome to my India welcome to my India Welcome to my india welcome to my india Welcome to my India welcome to my India ANSWER DOWNLOAD EXAMIANS APP
PHP Functions The arguments in a function are evaluated from ..... right to left Always right to left sometimes left to right and sometimes right to left left to right right to left Always right to left sometimes left to right and sometimes right to left left to right 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"); Error helloblabla helloblablablabla hello Error helloblabla helloblablablabla hello ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which one of the following is the right way of defining a function in PHP? function { function body } function fumctionName(parameters) { function body } data type functionName(parameters) { function body } functionName(parameters) { function body } function { function body } function fumctionName(parameters) { function body } data type functionName(parameters) { function body } functionName(parameters) { function body } 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); 1 -0.5 0.5 0 1 -0.5 0.5 0 ANSWER DOWNLOAD EXAMIANS APP