PHP Arrays Which function returns an array consisting of associative key/value pairs? array_count_values() count() array_count() count_values() array_count_values() count() array_count() count_values() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What elements will the following script output?$array = array (true => 'a', 1 => 'b');var_dump ($array); It will output NULL None True => 'a', 1 => 'b' 1 => 'b' It will output NULL None True => 'a', 1 => 'b' 1 => 'b' 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 Float, string String, Boolean Positive number, negative number Even number, string Integer, string Float, string String, Boolean Positive number, negative number Even number, string 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); blue none of the mentioned green red blue none of the mentioned green red ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$place = array("NYC", "LA", "Paris");array_pop($place);$place1 = array("Paris");$place = array_merge($place, $place1);print_r($place); None of the mentioned Array ( [0] => NYC [1] => LA [2] => Paris [3] => Paris ) Array ( [0] => LA [1] => Paris [2] => Paris ) Array ( [0] => NYC [1] => LA [2] => Paris) None of the mentioned Array ( [0] => NYC [1] => LA [2] => Paris [3] => Paris ) Array ( [0] => LA [1] => Paris [2] => Paris ) Array ( [0] => NYC [1] => LA [2] => Paris) 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] . ".".$brother; Sam is the brother of Bob and Bob) $brother $brother Error Sam is the brother of Bob and Bob) Sam is the brother of Bob and Bob) $brother $brother Error Sam is the brother of Bob and Bob) ANSWER DOWNLOAD EXAMIANS APP