PHP Functions What will be the output of the following PHP code?echo lcfirst("welcome to my India"); Welcome to my India welcome to my India welcome to my india Welcome to my india Welcome to my India welcome to my India welcome to my india Welcome to my india ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which one of the following is the right way of defining a function in PHP? 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 } function { function body } functionName(parameters) { function body } ANSWER DOWNLOAD EXAMIANS APP
PHP Functions It is always necessary to use parentheses with the print function. False True False True ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function string(){echo strstr("Hello world!", 111);}string(); o world! No Output 111 Hello world! o world! No Output 111 Hello world! ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function calc($num1, $num2){$total = $num1 * $num2;return $total; }$result = calc(42, 0);echo $result; 0 Error 84 42 0 Error 84 42 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function start($string){if ($string < 45)return 20;elsereturn 40;}$t = start(90);if ($t < 20){echo "Have a good day!";}else{echo "Have a good night!";} ERROR None of the mentioned Have a good night! Have a good day! ERROR None of the mentioned Have a good night! Have a good day! ANSWER DOWNLOAD EXAMIANS APP