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] => apple [1] => mango ) Array ( [0] => pear [1] => orange ) Array ( [0] => apple [1] => mango [2] => peach ) Error Array ( [0] => apple [1] => mango ) Array ( [0] => pear [1] => orange ) Array ( [0] => apple [1] => mango [2] => peach ) Error 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) ); False 1 True 2 False 1 True 2 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What elements will the following script output?$array = array (true => 'a', 1 => 'b');var_dump ($array); 1 => 'b' None It will output NULL True => 'a', 1 => 'b' 1 => 'b' None It will output NULL True => 'a', 1 => 'b' 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] . ".".$brother; Sam is the brother of Bob and Bob) $brother Sam is the brother of Bob and Bob) $brother Error Sam is the brother of Bob and Bob) $brother Sam is the brother of Bob and Bob) $brother Error 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 [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 ) Array ( [Harry] => 21 [Ron] => 23 ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What array will you get if you convert an object to an array? An array with properties of that object as the array's elements An array with properties of that array as the object's elements An array with properties of that object as the Key elements An array with keys of that object as the array's elements An array with properties of that object as the array's elements An array with properties of that array as the object's elements An array with properties of that object as the Key elements An array with keys of that object as the array's elements ANSWER DOWNLOAD EXAMIANS APP