PHP Functions What will be the output of the following PHP code?function onespan>() {define("const","I am awesome!");echo constant("const");}one(); const, I am awesome!! I am awesome!! const “const”,”I am awesome!” const, I am awesome!! I am awesome!! const “const”,”I am awesome!” 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); Call By Reference Type Hinting Call By Value Default Argument Value Call By Reference Type Hinting Call By Value Default Argument Value ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Above usleep() function pauses PHP for .usleep(1000000); 1 second 100 microseconds 1 microseconds 10 seconds 1 second 100 microseconds 1 microseconds 10 seconds 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 : Returned value from the function : $return_value Returned value from the function : 30 Error Returned value from the function : Returned value from the function : $return_value Returned value from the function : 30 Error 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 day! None of the mentioned Have a good night! ERROR Have a good day! None of the mentioned Have a good night! ERROR ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function calc($num1, $num2){$total = $num1 * $num2;}$result = calc(42, 0);echo $result; Error 84 42 0 Error 84 42 0 ANSWER DOWNLOAD EXAMIANS APP