PHP Arrays What will be the output of the following PHP code?$a = array("red", "green", "blue");array_pop($a);print_r($a); Array ( [0] => red [1] => green ) Array ( [0] => blue [1] => blue ) Array ( [0] => green [1] => blue ) Array ( [0] => red [1] => blue ) Array ( [0] => red [1] => green ) Array ( [0] => blue [1] => blue ) Array ( [0] => green [1] => blue ) Array ( [0] => red [1] => blue ) 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); Array ( [0] => pear [1] => orange ) Error Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => apple [1] => mango ) Array ( [0] => pear [1] => orange ) Error Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => apple [1] => mango ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What elements will the following script output?$array = array (true => 'a', 1 => 'b');var_dump ($array); True => 'a', 1 => 'b' None It will output NULL 1 => 'b' True => 'a', 1 => 'b' None It will output NULL 1 => 'b' 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); d c b a d c b a ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which function returns an array consisting of associative key/value pairs? count() array_count_values() count_values() array_count() count() array_count_values() count_values() array_count() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which of the following are correct ways of creating an array?1. state[0] = “karnataka”;2. $state[] = array(“karnataka”);3. $state[0] = “karnataka”;4. $state = array(“karnataka”); 2, 3 and 4 Only 1 3 and 4 2 and 3 2, 3 and 4 Only 1 3 and 4 2 and 3 ANSWER DOWNLOAD EXAMIANS APP