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 42 0 84 Error 42 0 84 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 Error Returned value from the function : $return_value Returned value from the function : Returned value from the function : 30 Error Returned value from the function : $return_value Returned value from the function : Returned value from the function : 30 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function time($string){echo strtr("Towe Pa55", "ow5", $string);}time("ims"); Towe Pa55 Towe Pass Time Pass Time Pa55 Towe Pa55 Towe Pass Time Pass Time Pa55 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;} greeting ERROR GREETING Welcome to Narnia greeting ERROR GREETING Welcome to Narnia ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which of the following PHP functions can be used for generating unique id’s? uniqueid() md5() id() mdid() uniqueid() md5() id() mdid() ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?$var = 10;function one(){echo $var;}one(); No Output None of the Mentioned Error 10 No Output None of the Mentioned Error 10 ANSWER DOWNLOAD EXAMIANS APP