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 executedb is executed b is executedb is executedb is executed a is executed b is executeda is executed b is executeda is executedb is executed b is executedb is executedb is executed a is executed b is executeda is executed ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will happen in this function call?function calc($price, $tax) {$total = $price + $tax;}$pricetag = 15;$taxtag = 3;calc($pricetag, $taxtag); Default Argument Value Call By Reference Call By Value Type Hinting Default Argument Value Call By Reference Call By Value Type Hinting ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?$op2 = "blabla"; function foo($op1) {echo $op1;echo $op2;}foo("hello"); hello helloblabla helloblablablabla Error hello helloblabla helloblablablabla Error ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?echo strtr("Hilla Warld","ia","eo"); Hello World eo ia Hilla Warld Hello World eo ia Hilla Warld ANSWER DOWNLOAD EXAMIANS APP
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 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 } 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