PHP Functions What will be the output of the following PHP code?echo stripos("I love php, I love php too!","PHP"); 3 10 7 8 3 10 7 8 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function calc($num1, $num2){$total = $num1 * $num2;}$result = calc(42, 0);echo $result; 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 b() {echo "b is executed";}function a(){b();echo "a is executed";b();}a(); b is executeda is executed b is executedb is executedb is executed a is executed b is executeda is executedb is executed b is executeda is executed b is executedb is executedb is executed a is executed b is executeda is executedb is executed 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 Error 1 49 Sum Error 1 49 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which one of the following is the right way of defining a function in PHP? function { function body } functionName(parameters) { function body } data type functionName(parameters) { function body } function fumctionName(parameters) { function body } function { function body } functionName(parameters) { function body } data type functionName(parameters) { function body } function fumctionName(parameters) { function body } ANSWER DOWNLOAD EXAMIANS APP
PHP Functions The below statement will return.$Var = substr(""abcdef"", -4, 1); returns "f" returns "d" returns "c" returns "cd" returns "f" returns "d" returns "c" returns "cd" ANSWER DOWNLOAD EXAMIANS APP