PHP Functions What will be the output of the following PHP code?function do($myString) {echo strpos($myString, "donkey",0);}do("The donkey looks like a horse."); None of the mentioned 2 4 5 None of the mentioned 2 4 5 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 $num None of the mentioned 3 5 $num None of the mentioned 3 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 None of the Mentioned 10 Error No Output None of the Mentioned 10 Error 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 Error 49 Sum 1 Error 49 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function constant(){define("GREETING", "Welcome to Narnia");echo greeting;} GREETING ERROR Welcome to Narnia greeting GREETING ERROR Welcome to Narnia greeting 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 } functionName(parameters) { function body } data type functionName(parameters) { function body } function { function body } function fumctionName(parameters) { function body } functionName(parameters) { function body } data type functionName(parameters) { function body } function { function body } ANSWER DOWNLOAD EXAMIANS APP