PHP Functions What will be the output of the following PHP code ?function _func(){echo "Hello World";}_func(); Hello World ERROR None of the mentioned No Output Hello World ERROR None of the mentioned No Output ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?$var = 10;function one(){echo $var;}one(); Error None of the Mentioned No Output 10 Error None of the Mentioned No Output 10 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function sum($num1, $num2) {$total = $num1 + $num2;echo "chr($total)";}$var1 = "sum";$var1(5, 44); Error Sum 1 49 Error Sum 1 49 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 : Returned value from the function : $return_value Error Returned value from the function : 30 Returned value from the function : Returned value from the function : $return_value Error Returned value from the function : 30 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function a() {function b() {echo 'I am bb';}echo 'I am a';}b();a(); Error I am bI am a I am a Error I am bb Error I am bI am a I am a Error I am bb 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