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.5 1 0 0.5 -0.5 1 0 0.5 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function _func(){echo "Hello World";}_func(); None of the mentioned ERROR Hello World No Output None of the mentioned ERROR 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 : 30 Returned value from the function : Error Returned value from the function : $return_value Returned value from the function : 30 Returned value from the function : Error Returned value from the function : $return_value ANSWER DOWNLOAD EXAMIANS APP
PHP Functions The below statement will return.$Var = substr(""abcdef"", -4, 1); returns "f" returns "cd" returns "c" returns "d" returns "f" returns "cd" returns "c" returns "d" ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?define("GREETING","Hello you! How are you today?");echo constant("GREETING"); “GREETING”,”Hello you! How are you today?” Hello you! How are you today? GREETING, Hello you! How are you today? GREETING “GREETING”,”Hello you! How are you today?” Hello you! How are you today? GREETING, Hello you! How are you today? GREETING ANSWER DOWNLOAD EXAMIANS APP
PHP Functions strlen() returns the length of the string on success and . . . . if the string is empty. Garbage value -1 0 NULL Garbage value -1 0 NULL ANSWER DOWNLOAD EXAMIANS APP