PHP Functions What will be the output of the following PHP code ?function uppercase($string) {echo ucwords($string);}$wow = "uppercase";$wow("Time to live king size"); Time to live king size Time To Live King Size Uppercase TIME TO LIVE KING SIZE Time to live king size Time To Live King Size Uppercase TIME TO LIVE KING SIZE 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); $num 3 5 None of the mentioned $num 3 5 None of the mentioned ANSWER DOWNLOAD EXAMIANS APP
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.5 0 0.5 1 -0.5 0 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which of the following are valid function names?1. function()2. €()3. .function()4. $function() All of the mentioned Only 2 None of the mentioned 3 and 4 All of the mentioned Only 2 None of the mentioned 3 and 4 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(); contact@examians.com @examians.com contact examians.com contact@examians.com @examians.com contact examians.com 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."; is good for health Salad Salad is good for health is good for health SaladSaladSaladSaladSalad SaladSaladSaladSaladSalad is good for health is good for health Salad Salad is good for health is good for health SaladSaladSaladSaladSalad SaladSaladSaladSaladSalad is good for health ANSWER DOWNLOAD EXAMIANS APP