PHP Functions What will be the output of the following PHP code ?function constant(){define("GREETING", "Welcome to Narnia");echo greeting;} GREETING ERROR greeting Welcome to Narnia GREETING ERROR greeting Welcome to Narnia 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;} Welcome to Narnia GREETING ERROR greeting Welcome to Narnia GREETING ERROR greeting 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!";} Have a good night! None of the mentioned Have a good day! ERROR Have a good night! None of the mentioned Have a good day! ERROR 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(); @examians.com contact@examians.com examians.com contact @examians.com contact@examians.com examians.com contact ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function string(){echo strstr("Hello world!", 111);}string(); Hello world! o world! No Output 111 Hello world! o world! No Output 111 ANSWER DOWNLOAD EXAMIANS APP