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() sort() asort() usort() ksort() krsort() sort() asort() usort() ksort() 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] . "."; Error Sam is the brother of Bob and Bob) Sam is the brother of Jack and Bob) Sam is the brother of Bob and Jack Error Sam is the brother of Bob and Bob) Sam is the brother of Jack and Bob) Sam is the brother of Bob and Jack ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$a = array("a"=>"red", "b"=>"green", "c"=>"blue");echo array_shift($a);print_r ($a); none of the mentioned green red blue none of the mentioned green red blue ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which array function checks if the specified key exists in the array? array_key_exists() array_key_exist() array_keys_exists() arrays_key_exists() array_key_exists() array_key_exist() array_keys_exists() arrays_key_exists() 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. Integer, string Positive number, negative number Float, string String, Boolean Even number, string Integer, string Positive number, negative number Float, string String, Boolean Even number, string 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] => apple [1] => mango [2] => peach ) Array ( [0] => apple [1] => mango ) Array ( [0] => pear [1] => orange ) Error Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => apple [1] => mango ) Array ( [0] => pear [1] => orange ) Error ANSWER DOWNLOAD EXAMIANS APP