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!";} Have a good night! ERROR Have a good day! None of the mentioned Have a good night! ERROR Have a good day! None of the mentioned ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function calc($price, $tax="") {$total = $price + ($price * $tax);echo "$total";}calc(42); 42 Error 0 84 42 Error 0 84 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; 84 0 42 Error 84 0 42 Error ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?echo "chr(52)"; 1 4 2 3 1 4 2 3 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";}}a("Sherlock");b(); Error my favourite TV show is SherlockI am here ro spoil this code None of the mentioned I am here to spoil this code Error my favourite TV show is SherlockI am here ro spoil this code None of the mentioned I am here to spoil this code ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function constant(){define("GREETING", "Welcome to Narnia");echo greeting;} ERROR GREETING greeting Welcome to Narnia ERROR GREETING greeting Welcome to Narnia ANSWER DOWNLOAD EXAMIANS APP