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. Even number, string Integer, string String, Boolean Float, string Positive number, negative number Even number, string Integer, string String, Boolean Float, 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?$states = array("karnataka" => array( "population" => "11,35,000", "captial" => "Bangalore"),"Tamil Nadu" => array( "population" => "17,90,000","captial" => "Chennai") );echo $states["karnataka"]["population"]; karnataka 11,35,000 population 11,35,000 karnataka population 11,35,000 karnataka 11,35,000 population 11,35,000 karnataka population 11,35,000 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$fruits = array ("mango", "apple", "peach", "pear");$fruits = asort ($fruits);printr ($fruits); Array ( [1] => apple [0] => mango [3] => peach [2] => pear ) Array ( [1] => apple [0] => mango [2] => peach [3] => pear ) Error Array ( [0] => apple [1] => mango [2] => peach [3] => pear ) Array ( [1] => apple [0] => mango [3] => peach [2] => pear ) Array ( [1] => apple [0] => mango [2] => peach [3] => pear ) Error Array ( [0] => apple [1] => mango [2] => peach [3] => pear ) 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? krsort() ksort() sort() usort() asort() krsort() ksort() sort() usort() asort() 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 ) Array ( [0] => apple [1] => mango ) Error Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => pear [1] => orange ) Array ( [0] => apple [1] => mango ) Error Array ( [0] => apple [1] => mango [2] => peach ) ANSWER DOWNLOAD EXAMIANS APP