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, Hello you! How are you today? GREETING Hello you! How are you today? “GREETING”,”Hello you! How are you today?” GREETING, Hello you! How are you today? GREETING 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 SaladSaladSaladSaladSalad Salad is good for health SaladSaladSaladSaladSalad is good for health is good for health Salad is good for health SaladSaladSaladSaladSalad Salad is good for health SaladSaladSaladSaladSalad is good for health is good for health Salad 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!";} ERROR 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! ANSWER DOWNLOAD EXAMIANS APP
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"); Uppercase 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 ANSWER DOWNLOAD EXAMIANS APP
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 stripos("I love php, I love php too!","PHP"); 8 10 3 7 8 10 3 7 ANSWER DOWNLOAD EXAMIANS APP