PHP Functions What will be the output of the following PHP code?$op2 = "blabla";function foo($op1) {echo $op1;echo $op2;}foo("hello"); error helloblabla helloblablablabla hello error helloblabla helloblablablabla hello 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;} 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 ?function constant(){define("GREETING", "Welcome to Narnia",true);echo greeting;} GREETING greeting Welcome to Narnia ERROR GREETING greeting Welcome to Narnia ERROR ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?echo ord ("hi"); 106 209 104 103 106 209 104 103 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 Value Type Hinting Call By Reference Default Argument Value Call By Value Type Hinting Call By Reference 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 Have a good day! None of the mentioned Have a good night! ERROR Have a good day! None of the mentioned Have a good night! ANSWER DOWNLOAD EXAMIANS APP