PHP Functions Which one of the following is the right way of defining a function in PHP? function fumctionName(parameters) { function body } function { function body } functionName(parameters) { function body } data type functionName(parameters) { function body } function fumctionName(parameters) { function body } function { function body } functionName(parameters) { function body } data type functionName(parameters) { function body } ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function do($myString) {echo strpos($myString, "donkey",0);}do("The donkey looks like a horse."); 4 2 None of the mentioned 5 4 2 None of the mentioned 5 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?echo ucwords("i love my country"); I love my country I love my Country I Love My Country i love my Country I love my country I love my Country I Love My Country i love my Country 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;} 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?define("GREETING","Hello you! How are you today?");echo constant("GREETING"); GREETING, Hello you! How are you today? “GREETING”,”Hello you! How are you today?” Hello you! How are you today? GREETING GREETING, Hello you! How are you today? “GREETING”,”Hello you! How are you today?” Hello you! How are you today? GREETING ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?echo lcfirst("welcome to my India"); welcome to my india Welcome to my India Welcome to my india welcome to my India welcome to my india Welcome to my India Welcome to my india welcome to my India ANSWER DOWNLOAD EXAMIANS APP