PHP Arrays Which function can be used to move the pointer to the previous array position? before() previous() prev() last() before() previous() prev() last() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code ?$age = array("Harry" => "21", "Ron" => "23","Malfoy" => "21");array_change_key_case($age, CASE_UPPER);array_pop($age);print_r($age); Array ( [Harry] => 21 [Ron] => 23 ) Array ( [Harry] => 21 [Ron] => 23 [Malfoy] => 21 ) Array ( [HARRY] => 21 [RON] => 23 [MALFOY] => 21 ) Array ( [HARRY] => 21 [RON] => 23 ) Array ( [Harry] => 21 [Ron] => 23 ) Array ( [Harry] => 21 [Ron] => 23 [Malfoy] => 21 ) Array ( [HARRY] => 21 [RON] => 23 [MALFOY] => 21 ) Array ( [HARRY] => 21 [RON] => 23 ) 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");$result = array_diff($a1, $a2);print_r($result); Array ( [c] => blue ) Array ( [a] => red ) Array ( [d] => yellow ) Array ( [e] => yellow ) Array ( [c] => blue ) Array ( [a] => red ) Array ( [d] => yellow ) Array ( [e] => yellow ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What elements will the following script output?$array = array (true => 'a', 1 => 'b');var_dump ($array); It will output NULL None 1 => 'b' True => 'a', 1 => 'b' It will output NULL None 1 => 'b' True => 'a', 1 => 'b' ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code ?$a = array(12, 5, 2);echo(array_product($a)); 010 060 120 024 010 060 120 024 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code ?$a = array("a" => "Jaguar", "b" => "Land Rover", "c" => "Audi", "d" => "Maseratti");echo array_search("Audi", $a); a d b c a d b c ANSWER DOWNLOAD EXAMIANS APP