PHP Functions What will be the output of the following PHP code?echo strtr("Hilla Warld","ia","eo"); Hilla Warld eo ia Hello World Hilla Warld eo ia Hello World 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!";} Have a good night! None of the mentioned Have a good day! ERROR Have a good night! None of the mentioned Have a good day! ERROR ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which one of the following functions can be used to compress a string? zip_compress() gzcompress() compress() zip() zip_compress() gzcompress() compress() zip() ANSWER DOWNLOAD EXAMIANS APP
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 -0.5 1 0.5 0 -0.5 1 0.5 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
PHP Functions What will be the output of the following PHP code ?function time($string){echo strtr("Towe Pa55", "ow5", $string);}time("ims"); Towe Pa55 Towe Pass Time Pa55 Time Pass Towe Pa55 Towe Pass Time Pa55 Time Pass ANSWER DOWNLOAD EXAMIANS APP