PHP Functions Which of the following are valid function names?1. function()2. €()3. .function()4. $function() All of the mentioned 3 and 4 None of the mentioned Only 2 All of the mentioned 3 and 4 None of the mentioned Only 2 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 Returned value from the function : $return_value Returned value from the function : Error Returned value from the function : 30 Returned value from the function : $return_value Returned value from the function : Error Returned value from the function : 30 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"); helloblablablabla hello Error helloblabla helloblablablabla hello Error helloblabla ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?$str = addslashes('What does "yolo" mean?');echo($str); What does ”yolo” mean? What does ”yolo” mean? What does /”yolo/” mean? What does ”yolo” mean? What does ”yolo” mean? What does ”yolo” mean? What does /”yolo/” mean? What does ”yolo” mean? ANSWER DOWNLOAD EXAMIANS APP
PHP Functions . . . . . converts the keys of an array into values and the values into keys. array_flips() array_trans() array_flip() array_transpose() array_flips() array_trans() array_flip() array_transpose() 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); Error 84 42 0 Error 84 42 0 ANSWER DOWNLOAD EXAMIANS APP