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 : $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 : ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function email(){$email = ’contact@examians.com’;$new = strstr($email, ‘@');echo $new;}email(); @examians.com examians.com contact contact@examians.com @examians.com examians.com contact contact@examians.com ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which of the following are valid function names?1. function()2. €()3. .function()4. $function() Only 2 3 and 4 All of the mentioned None of the mentioned Only 2 3 and 4 All of the mentioned None of the mentioned ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function start($string){if ($string < 45)return 20;elsereturn 40;}$t = start(90);if ($t < 20){echo "Have a good day!";}else{echo "Have a good night!";} Have a good night! ERROR None of the mentioned Have a good day! Have a good night! ERROR None of the mentioned Have a good day! 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 “const”,”I am awesome!” const, I am awesome!! I am awesome!! const “const”,”I am awesome!” const, I am awesome!! I am awesome!! ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?echo(atan(0.50)); 0.11845976421345 1 0.23568451142521 0.46364760900081 0.11845976421345 1 0.23568451142521 0.46364760900081 ANSWER DOWNLOAD EXAMIANS APP