PHP Functions Which one of the following is the right way of defining a function in PHP? 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 } function fumctionName(parameters) { function body } ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function TV($string){echo "my favourite TV show is ".$string;function b() {echo " I am here to spoil this code";}}a("Sherlock");b(); I am here to spoil this code None of the mentioned my favourite TV show is SherlockI am here ro spoil this code Error I am here to spoil this code None of the mentioned my favourite TV show is SherlockI am here ro spoil this code 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
PHP Functions What will be the output of the following PHP code?$str = addslashes('What does "yolo" mean?');echo($str); What does ”yolo” mean? What does /”yolo/” mean? What does ”yolo” mean? What does ”yolo” mean? What does ”yolo” mean? What does /”yolo/” mean? What does ”yolo” mean? What does ”yolo” mean? 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 a is executed b is executedb is executedb is executed b is executeda is executedb is executed b is executeda is executed a is executed b is executedb is executedb 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 TV($string){echo "my favourite TV show is ".$string;function b() {echo " I am here to spoil this code";}}function b(){echo " I am here to spoil this code";}b();TV("Sherlock"); None of the mentioned My favourite TV show isI am here to spoil this code I am here to spoil this code Error None of the mentioned My favourite TV show isI am here to spoil this code I am here to spoil this code Error ANSWER DOWNLOAD EXAMIANS APP