PHP Functions Which of the following are valid function names?1. function()2. €()3. .function()4. $function() All of the mentioned 3 and 4 Only 2 None of the mentioned All of the mentioned 3 and 4 Only 2 None of the mentioned ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?$var = 10;function one(){echo $var;}one(); No Output Error None of the Mentioned 10 No Output Error None of the Mentioned 10 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which one of the following is the right way of defining a function in PHP? function fumctionName(parameters) { function body } data type functionName(parameters) { function body } functionName(parameters) { function body } function { function body } function fumctionName(parameters) { function body } data type functionName(parameters) { function body } functionName(parameters) { function body } function { function body } ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function calc($price, $tax="") {$total = $price + ($price * $tax);echo "$total";}calc(42); 42 Error 84 0 42 Error 84 0 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! 111 No Output Hello world! o world! 111 No Output ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?$x = 75;$y = 25;function addition(){$GLOBALS['z'] = $GLOBALS['x'] + $GLOBALS['y'];}addition();echo $z; 100 75 error 25 100 75 error 25 ANSWER DOWNLOAD EXAMIANS APP