PHP Functions What will be the output of the following PHP code?function sum($num1, $num2) {$total = $num1 + $num2;echo "cos($total)";}sum(5,-5); -0.5 0 0.5 1 -0.5 0 0.5 1 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;} Welcome to Narnia GREETING ERROR greeting Welcome to Narnia GREETING ERROR greeting ANSWER DOWNLOAD EXAMIANS APP
PHP Functions The below statement will return.$Var = substr(""abcdef"", -4, 1); returns "d" returns "f" returns "c" returns "cd" returns "d" returns "f" returns "c" returns "cd" ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function TV($string){echo "my favourite TV show is ".$string;function b() {echo " I am here to spoil this code";}}a("Sherlock");b(); Error None of the mentioned I am here to spoil this code my favourite TV show is SherlockI am here ro spoil this code Error None of the mentioned I am here to spoil this code my favourite TV show is SherlockI am here ro spoil this code ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function sum($num1, $num2) {$total = $num1 + $num2;echo "chr($total)";}$var1 = "sum";$var1(5, 44); 49 1 Sum Error 49 1 Sum Error 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 ERROR Welcome to Narnia GREETING greeting ERROR Welcome to Narnia GREETING ANSWER DOWNLOAD EXAMIANS APP