PHP Functions What will be the output of the following PHP code?function sum($num1, $num2) {$total = $num1 + $num2;echo "cos($total)";}sum(5,-5); 0.5 1 0 -0.5 0.5 1 0 -0.5 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions A function in PHP which starts with ______ (double underscore) is know as. User Defined Function Inbuilt Function Default Function Magic Function User Defined Function Inbuilt Function Default Function Magic Function 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); Sum 1 49 Error Sum 1 49 Error 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 0 Error 84 42 0 Error 84 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function _func(){echo "Hello World";}_func(); ERROR Hello World None of the mentioned No Output ERROR Hello World None of the mentioned No Output ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function test($int){if ($int == 1)echo "This Works";if ($int == 2)echo "This Too Seems To Work";}test(1);TEST(2); ERROR This Works This Too Seems To Work This WorksThis Too Seems To Work ERROR This Works This Too Seems To Work This WorksThis Too Seems To Work ANSWER DOWNLOAD EXAMIANS APP