PHP Functions What will be the output of the following PHP code ?function constant(){define("GREETING", "Welcome to Narnia",true);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 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 ?function string(){echo strstr("Hello world!", 111);}string(); o world! Hello world! No Output 111 o world! Hello world! No Output 111 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function b() {echo "b is executed";}function a(){b();echo "a is executed";b();}a(); a is executed b is executeda is executed b is executeda is executedb is executed b is executedb is executedb is executed a is executed b is executeda is executed b is executeda is executedb is executed b is executedb is executedb is executed ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function a() {function b() {echo 'I am b';}echo 'I am a';}a();a(); I am bI am a I am a Error I am b Error I am bI am a I am a Error I am b 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."; 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 is good for health SaladSaladSaladSaladSalad Salad is good for health SaladSaladSaladSaladSalad is good for health ANSWER DOWNLOAD EXAMIANS APP