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 : 30 Returned value from the function : $return_value Error Returned value from the function : Returned value from the function : 30 Returned value from the function : $return_value Error Returned value from the function : 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?$op2 = "blabla";function foo($op1) {echo $op1;echo $op2;}foo("hello"); hello helloblablablabla error helloblabla hello helloblablablabla error helloblabla ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which of the following PHP functions can be used for generating unique id’s? id() uniqueid() mdid() md5() id() uniqueid() mdid() md5() 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"); helloblabla Error hello helloblablablabla helloblabla Error hello helloblablablabla ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function uppercase($string) {echo ucwords($string);}$wow = "uppercase";$wow("Time to live king size"); TIME TO LIVE KING SIZE Uppercase Time to live king size Time To Live King Size TIME TO LIVE KING SIZE Uppercase Time to live king size Time To Live King Size ANSWER DOWNLOAD EXAMIANS APP