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 String, Boolean Even number, string Positive number, negative number Integer, string Float, string String, Boolean Even number, string Positive number, negative number Integer, string 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?$age = array("Peter"=>"35", "Ben"=>"37", "Joe"=>"43");print_r(array_change_key_case($age, CASE_UPPER)); Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( [peter] => 35 [ben] => 37 [joe] => 43 ) Array ( [PETER] => 35 [BEN] => 37 [JOE] => 43 ) Array ( [PeTeR] => 35 [BeN] => 37 [Joe] => 43 ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( [peter] => 35 [ben] => 37 [joe] => 43 ) Array ( [PETER] => 35 [BEN] => 37 [JOE] => 43 ) Array ( [PeTeR] => 35 [BeN] => 37 [Joe] => 43 ) 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? ksort() asort() krsort() usort() sort() ksort() asort() krsort() usort() sort() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$a = array("A", "Cat", "Dog", "A", "Dog");print_r(array_count_values($a)); Array ( [A] => 1 [Cat] => 1 [Dog] => 2 ) Array ( [A] => 2 [Cat] => 2 [Dog] => 1 ) Array ( [A] => 2 [Cat] => 1 [Dog] => 1) Array ( [A] => 2 [Cat] => 1 [Dog] => 2 ) Array ( [A] => 1 [Cat] => 1 [Dog] => 2 ) Array ( [A] => 2 [Cat] => 2 [Dog] => 1 ) Array ( [A] => 2 [Cat] => 1 [Dog] => 1) Array ( [A] => 2 [Cat] => 1 [Dog] => 2 ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code ?$array = array("red", "green");array_push($array, "blue", "yellow");print_r($array); Array ( [0] => blue [1] => yellow ) Array ( [0] => red [1] => green [2] => blue [3] => yellow ) Array ( [0] => blue [1] => yellow [2] => red [3] => green ) Array ( [0] => red [1] => green ) Array ( [0] => blue [1] => yellow ) Array ( [0] => red [1] => green [2] => blue [3] => yellow ) Array ( [0] => blue [1] => yellow [2] => red [3] => green ) Array ( [0] => red [1] => green ) ANSWER DOWNLOAD EXAMIANS APP