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; Error 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 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Array values are keyed by ______ values (called indexed arrays) or using ______ values (called associative arrays). Of course, these key methods can be combined as well. Float, string Integer, string String, Boolean Even number, string Positive number, negative number Float, string Integer, string String, Boolean Even number, string Positive number, negative number ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which array function checks if the specified key exists in the array? arrays_key_exists() array_key_exist() array_key_exists() array_keys_exists() arrays_key_exists() array_key_exist() array_key_exists() array_keys_exists() 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 b c d a b c d 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 ( [d] => yellow ) Array ( [a] => red ) Array ( [e] => yellow ) Array ( [c] => blue ) Array ( [d] => yellow ) Array ( [a] => red ) Array ( [e] => yellow ) Array ( [c] => blue ) 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"]; karnataka population population 11,35,000 karnataka 11,35,000 11,35,000 karnataka population population 11,35,000 karnataka 11,35,000 11,35,000 ANSWER DOWNLOAD EXAMIANS APP