PHP Functions The below statement will return.$Var = substr(""abcdef"", -4, 1); returns "f" returns "c" returns "d" returns "cd" returns "f" returns "c" returns "d" returns "cd" ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which of the following PHP functions can be used to get the current memory usage? get_usage() get_memory_peak_usage() get_peak_usage() get_memory_usage() get_usage() get_memory_peak_usage() get_peak_usage() get_memory_usage() ANSWER DOWNLOAD EXAMIANS APP
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 0.5 -0.5 1 0 0.5 -0.5 1 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; 84 0 42 Error 84 0 42 Error 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 helloblabla Error hello helloblablablabla helloblabla Error hello ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?$title = "O'malley wins the heavyweight championship!";echo ucwords($title); O’Malley wins the heavyweight championship! O’malley Wins The Heavyweight Championship! o’malley wins the heavyweight championship! O’Malley Wins The Heavyweight Championship! O’Malley wins the heavyweight championship! O’malley Wins The Heavyweight Championship! o’malley wins the heavyweight championship! O’Malley Wins The Heavyweight Championship! ANSWER DOWNLOAD EXAMIANS APP