PHP Functions strlen() returns the length of the string on success and . . . . if the string is empty. 0 -1 NULL Garbage value 0 -1 NULL Garbage value ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function addFunction($num1, $num2) {$sum = $num1 + $num2;return $sum;}$return_value = addFunction(10, 20);echo "Returned value from the function : $return_value" Returned value from the function : $return_value Returned value from the function : Returned value from the function : 30 Error Returned value from the function : $return_value Returned value from the function : Returned value from the function : 30 Error ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function constant(){define("GREETING", "Welcome to Narnia",true);echo greeting;} ERROR GREETING Welcome to Narnia greeting ERROR GREETING Welcome to Narnia greeting ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?$str = "Hello World";echo wordwrap($str,5,"n"); World HelloWorld Hell 0 Wo rld Hello World World HelloWorld Hell 0 Wo rld Hello World 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;} Welcome to Narnia greeting GREETING ERROR Welcome to Narnia greeting GREETING ERROR ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?$title = "O'malley wins the heavyweight championship!";echo ucwords($title); O’Malley wins the heavyweight championship! o’malley wins the heavyweight championship! O’malley Wins The Heavyweight Championship! O’Malley Wins The Heavyweight Championship! O’Malley wins the heavyweight championship! o’malley wins the heavyweight championship! O’malley Wins The Heavyweight Championship! O’Malley Wins The Heavyweight Championship! ANSWER DOWNLOAD EXAMIANS APP