PHP Functions What will be the output of the following PHP code ?function mine($num){$num = 2 + $num;echo $num;}mine(3); 3 $num 5 None of the mentioned 3 $num 5 None of the mentioned ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which one of the following is the right way of defining a function in PHP? function fumctionName(parameters) { function body } functionName(parameters) { function body } function { function body } data type functionName(parameters) { function body } function fumctionName(parameters) { function body } functionName(parameters) { function body } function { function body } data type functionName(parameters) { function body } ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function test($int){if ($int == 1)echo "This Works";if ($int == 2)echo "This Too Seems To Work";}test(1);TEST(2); ERROR This Too Seems To Work This WorksThis Too Seems To Work This Works ERROR This Too Seems To Work This WorksThis Too Seems To Work This Works ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function sum($num1, $num2) {$total = $num1 + $num2;echo "chr($total)";}$var1 = "sum";$var1(5, 44); 49 1 Sum Error 49 1 Sum Error ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which one of the following PHP functions can be used to build a function that accepts any number of arguments? get_argv() get_argc() func_get_argc() func_get_argv() get_argv() get_argc() func_get_argc() func_get_argv() 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 I am b I am a Error Error I am bI am a I am b I am a Error Error ANSWER DOWNLOAD EXAMIANS APP