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 @examians.com contact contact@examians.com examians.com @examians.com contact contact@examians.com 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";}}function b() {echo " I am here to spoil this code";}b(); None of the mentioned my favourite TV show isI am here to spoil this code Error I am here to spoil this code None of the mentioned my favourite TV show isI am here to spoil this code Error I am here to spoil this code ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which one of the following is the right way of defining a function in PHP? function { function body } functionName(parameters) { function body } function fumctionName(parameters) { function body } data type functionName(parameters) { function body } function { function body } functionName(parameters) { function body } function fumctionName(parameters) { function body } data type functionName(parameters) { function body } ANSWER DOWNLOAD EXAMIANS APP
PHP Functions . . . . returns a new DateTime object. date() date_sunrise() getdate() date_create() date() date_sunrise() getdate() date_create() ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?$op2 = "blabla"; function foo($op1) {echo $op1;echo $op2;}foo("hello"); helloblabla hello Error helloblablablabla helloblabla hello Error helloblablablabla 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 Welcome to Narnia GREETING greeting ERROR Welcome to Narnia GREETING greeting ANSWER DOWNLOAD EXAMIANS APP