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); 0 1 -0.5 0.5 0 1 -0.5 0.5 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions strlen() returns the length of the string on success and . . . . if the string is empty. 0 -1 Garbage value NULL 0 -1 Garbage value NULL 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!";} None of the mentioned Have a good day! Have a good night! ERROR None of the mentioned Have a good day! Have a good night! ERROR ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?echo strtr("Hilla Warld","ia","eo"); Hello World eo Hilla Warld ia Hello World eo Hilla Warld ia 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 Error Returned value from the function : Returned value from the function : 30 Returned value from the function : $return_value Error Returned value from the function : Returned value from the function : 30 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?echo "chr(52)"; 3 1 4 2 3 1 4 2 ANSWER DOWNLOAD EXAMIANS APP