PHP Functions Which one of the following is the right way of defining a function in PHP? data type functionName(parameters) { function body } 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 } 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 contact@examians.com examians.com @examians.com contact contact@examians.com examians.com @examians.com ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which one of the following functions can be used to compress a string? compress() zip() gzcompress() zip_compress() compress() zip() gzcompress() zip_compress() 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
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(); None of the mentioned I am here to spoil this code my favourite TV show is SherlockI am here ro spoil this code Error None of the mentioned I am here to spoil this code my favourite TV show is SherlockI am here ro spoil this code Error ANSWER DOWNLOAD EXAMIANS APP
PHP Functions A function in PHP which starts with ______ (double underscore) is know as. Inbuilt Function Magic Function User Defined Function Default Function Inbuilt Function Magic Function User Defined Function Default Function ANSWER DOWNLOAD EXAMIANS APP