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 : Error Returned value from the function : 30 Returned value from the function : $return_value Returned value from the function : Error Returned value from the function : 30 Returned value from the function : $return_value ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?echo str_pad("Salad", 5)." is good for health."; SaladSaladSaladSaladSalad is good for health is good for health Salad is good for health SaladSaladSaladSaladSalad Salad is good for health SaladSaladSaladSaladSalad is good for health is good for health Salad is good for health SaladSaladSaladSaladSalad Salad 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"); hello helloblabla helloblablablabla error hello helloblabla helloblablablabla error ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which one of the following functions can be used to compress a string? zip_compress() zip() compress() gzcompress() zip_compress() zip() compress() gzcompress() ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?echo ucwords("i love my country"); I Love My Country I love my Country i love my Country I love my country I Love My Country I love my Country i love my Country I love my country ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function foo($msg) {echo "$msg";}$var1 = "foo";$var1("will this work"); Will this work Error $msg 0 Will this work Error $msg 0 ANSWER DOWNLOAD EXAMIANS APP