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 ( [d] => yellow ) Array ( [c] => blue ) Array ( [a] => red ) Array ( [e] => yellow ) Array ( [d] => yellow ) Array ( [c] => blue ) Array ( [a] => red ) Array ( [e] => yellow ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Assume you would like to sort an array in ascending order by value while preserving key associations. Which of the following PHP sorting functions would you use? sort() asort() ksort() krsort() usort() sort() asort() ksort() krsort() usort() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which function returns an array consisting of associative key/value pairs? array_count_values() count_values() count() array_count() array_count_values() count_values() count() array_count() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What array will you get if you convert an object to an array? An array with keys of that object as the array's elements An array with properties of that object as the Key elements An array with properties of that array as the object's elements An array with properties of that object as the array's elements An array with keys of that object as the array's elements An array with properties of that object as the Key elements An array with properties of that array as the object's elements An array with properties of that object as the array's elements 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"]; population 11,35,000 karnataka population karnataka 11,35,000 11,35,000 population 11,35,000 karnataka population karnataka 11,35,000 11,35,000 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 b a c d b a c ANSWER DOWNLOAD EXAMIANS APP