PHP Functions Returning values from functions may include ..... Both A & B None of above Objects Arrays Both A & B None of above Objects Arrays ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function mine($num){$num = 2 + $num;echo $num;}mine(3); 5 None of the mentioned $num 3 5 None of the mentioned $num 3 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 contact@examians.com @examians.com contact examians.com contact@examians.com @examians.com ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function addFunction($num1, $num2) {$sum = $num1 + $num2;return $sum;}$return_value = addFunction(10, 20);echo "Returned value from the function : $return_value" Error Returned value from the function : $return_value Returned value from the function : Returned value from the function : 30 Error Returned value from the function : $return_value Returned value from the function : Returned value from the function : 30 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which one of the following PHP functions can be used to build a function that accepts any number of arguments? get_argc() get_argv() func_get_argc() func_get_argv() get_argc() get_argv() func_get_argc() func_get_argv() ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which one of the following is the right way of defining a function in PHP? function { function body } data type functionName(parameters) { function body } function fumctionName(parameters) { function body } functionName(parameters) { function body } function { function body } data type functionName(parameters) { function body } function fumctionName(parameters) { function body } functionName(parameters) { function body } ANSWER DOWNLOAD EXAMIANS APP