PHP Arrays Which in-built function will add a value to the end of an array? array_unshift() array_push() inend_array() into_array() array_unshift() array_push() inend_array() into_array() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$fruits = array ("apple", "mango", "peach", "pear", "orange");$subset = array_splice ($fruits, 2);print_r ($fruits); Error Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => pear [1] => orange ) Array ( [0] => apple [1] => mango ) Error Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => pear [1] => orange ) Array ( [0] => apple [1] => mango ) 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)); 4hello2 4 2 6 4hello2 4 2 6 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following php code?$states = array("karnataka" => array( "population" => "11,35,000", "captial" => "Bangalore"),"Tamil Nadu" => array( "population" => "17,90,000","captial" => "Chennai") );echo $states["karnataka"]["population"]; 11,35,000 karnataka 11,35,000 population 11,35,000 karnataka population 11,35,000 karnataka 11,35,000 population 11,35,000 karnataka population 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 ( [e] => yellow ) Array ( [d] => yellow ) Array ( [c] => blue ) Array ( [a] => red ) Array ( [e] => yellow ) Array ( [d] => yellow ) Array ( [c] => blue ) Array ( [a] => red ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$a1 = array("red", "green");$a2 = array("blue", "yellow");$a3 = array_merge($a1, $a2);$a4 = array("a", "b", "c", "d");$a = array_combine($a4, $a3);print_r($a); Array ( [0] => red [1] => green [2] => blue [3] => yellow ) Array ( [0] => blue [1] => yellow [2] => red [3] => green ) Array ( [a] => red [b] => green [c] => blue [d] => yellow ) Array ( [a] => blue [b] => yellow [c] => red [d] => green ) Array ( [0] => red [1] => green [2] => blue [3] => yellow ) Array ( [0] => blue [1] => yellow [2] => red [3] => green ) Array ( [a] => red [b] => green [c] => blue [d] => yellow ) Array ( [a] => blue [b] => yellow [c] => red [d] => green ) ANSWER DOWNLOAD EXAMIANS APP