PHP Arrays Which function can be used to move the pointer to the previous array position? last() prev() before() previous() last() prev() before() previous() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$state = array ("Karnataka", "Goa", "Tamil Nadu", "Andhra Pradesh");echo (array_search ("Tamil Nadu", $state) ); 1 2 True False 1 2 True False ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$names = array("Sam", "Bob", "Jack");echo $names[0] . "is the brother of " . $names[1] . " and " . $names[1] . "."; Error Sam is the brother of Jack and Bob) Sam is the brother of Bob and Bob) Sam is the brother of Bob and Jack Error Sam is the brother of Jack and Bob) Sam is the brother of Bob and Bob) Sam is the brother of Bob and Jack ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code ?$a1 = array("a" => "red", "b" => "green", "c" => "blue", "d" => "yellow");$result = array_flip($a1);print_r($result); Array ( [a] => a [b] => b [c] => c [d] => d ) Array ( [red] => red [green] => green [blue] => blue [yellow] => yellow ) Array ( [red] => a [green] => b [blue] => c [yellow] => d ) Array ( [a] => red [b] => green [c] => blue [d] => yellow ) Array ( [a] => a [b] => b [c] => c [d] => d ) Array ( [red] => red [green] => green [blue] => blue [yellow] => yellow ) Array ( [red] => a [green] => b [blue] => c [yellow] => d ) Array ( [a] => red [b] => green [c] => blue [d] => yellow ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$a1 = array("a" => "red", "b" => "green", "c" => "blue", "d" => "yellow");$a2 = array("e" => "red", "f" => "green", "g" => "blue", "h" => "orange");$a3 = array("i" => "orange");$a4 = array_combine($a2, $a3);$result = array_diff($a4, $a2);print_r($result); Array ( [d] => yellow [h] => orange ) Array ( [i] => orange ) Array ( [h] => orange ) Array ( [d] => yellow ) Array ( [d] => yellow [h] => orange ) Array ( [i] => orange ) Array ( [h] => orange ) Array ( [d] => yellow ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$number = array ("4", "hello", 2);echo (array_sum ($number)); 4 6 4hello2 2 4 6 4hello2 2 ANSWER DOWNLOAD EXAMIANS APP