PHP Functions What will be the output of the following PHP code?echo str_pad("Salad", 5)." is good for health."; is good for health SaladSaladSaladSaladSalad is good for health Salad Salad is good for health SaladSaladSaladSaladSalad is good for health is good for health SaladSaladSaladSaladSalad is good for health Salad Salad is good for health SaladSaladSaladSaladSalad is good for health 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"); helloblabla Error helloblablablabla hello helloblabla Error helloblablablabla hello ANSWER DOWNLOAD EXAMIANS APP
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; 100 error 75 25 100 error 75 25 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function string(){echo strstr("Hello world!", 111);}string(); 111 o world! Hello world! No Output 111 o world! Hello world! No Output 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" Returned value from the function : $return_value Returned value from the function : 30 Error Returned value from the function : Returned value from the function : $return_value Returned value from the function : 30 Error Returned value from the function : ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function sayHello() {echo "HelloWorld";}$function_holder = "sayHello";$function_holder(); HelloWorld No Output Error sayHello HelloWorld No Output Error sayHello ANSWER DOWNLOAD EXAMIANS APP