PHP Functions The below statement will return.$Var = substr(""abcdef"", -4, 1); returns "cd" returns "d" returns "c" returns "f" returns "cd" returns "d" returns "c" returns "f" 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 : 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?$str = "Hello World";echo wordwrap($str,5,"n"); Hell 0 Wo rld Hello World World HelloWorld Hell 0 Wo rld Hello World World HelloWorld 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(); None of the mentioned Error my favourite TV show is SherlockI am here ro spoil this code I am here to spoil this code None of the mentioned Error my favourite TV show is SherlockI am here ro spoil this code I am here to spoil this code ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?echo strtr("Hilla Warld","ia","eo"); Hilla Warld Hello World ia eo Hilla Warld Hello World ia eo 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"); helloblablablabla Error hello helloblabla helloblablablabla Error hello helloblabla ANSWER DOWNLOAD EXAMIANS APP