PHP Functions What will be the output of the following PHP code ?function calc($num1, $num2){$total = $num1 * $num2;}$result = calc(42, 0);echo $result; 84 42 0 Error 84 42 0 Error ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?$title = "O'malley wins the heavyweight championship!";echo ucwords($title); O’Malley Wins The Heavyweight Championship! O’malley Wins The Heavyweight Championship! o’malley wins the heavyweight championship! O’Malley wins the heavyweight championship! O’Malley Wins The Heavyweight Championship! O’malley Wins The Heavyweight Championship! o’malley wins the heavyweight championship! O’Malley wins the heavyweight championship! ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function mine($num){$num = 2 + $num;echo $num;}mine(3); 3 $num 5 None of the mentioned 3 $num 5 None of the mentioned 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"); 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 “GREETING”,”Hello you! How are you today?” ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function constant(){define("GREETING", "Welcome to Narnia",true);echo greeting;} ERROR Welcome to Narnia greeting GREETING ERROR Welcome to Narnia greeting GREETING ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which one of the following is the right way of defining a function in PHP? function { function body } functionName(parameters) { function body } data type functionName(parameters) { function body } function fumctionName(parameters) { function body } function { function body } functionName(parameters) { function body } data type functionName(parameters) { function body } function fumctionName(parameters) { function body } ANSWER DOWNLOAD EXAMIANS APP