PHP Functions What will be the output of the following PHP code ?function calc($num1, $num2){$total = $num1 * $num2;return $total; }$result = calc(42, 0);echo $result; 0 42 84 Error 0 42 84 Error 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."; Salad is good for health is good for health Salad is good for health SaladSaladSaladSaladSalad SaladSaladSaladSaladSalad is good for health Salad is good for health is good for health Salad is good for health SaladSaladSaladSaladSalad SaladSaladSaladSaladSalad is good for health ANSWER DOWNLOAD EXAMIANS APP
PHP Functions strlen() returns the length of the string on success and . . . . if the string is empty. 0 NULL -1 Garbage value 0 NULL -1 Garbage value 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 It is always necessary to use parentheses with the print function. True False True False ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function TV($string){echo "my favourite TV show is ".$string;function b() {echo " I am here to spoil this code";}}function b(){echo " I am here to spoil this code";}b();TV("Sherlock"); Error I am here to spoil this code My favourite TV show isI am here to spoil this code None of the mentioned Error I am here to spoil this code My favourite TV show isI am here to spoil this code None of the mentioned ANSWER DOWNLOAD EXAMIANS APP