PHP Arrays PHP’s numerically indexed array begin with position ______. 0 1 -1 2 0 1 -1 2 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$fname = array("Peter", "Ben", "Joe");$age = array("35", "37", "43");$c = array_combine($age, $fname);print_r($c); Array ( [35] => Peter [37] => Ben [43] => Joe ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( Peter Ben Joe ) Array ( 35 37 43 ) Array ( [35] => Peter [37] => Ben [43] => Joe ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( Peter Ben Joe ) Array ( 35 37 43 ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which of the following are correct ways of creating an array?1. state[0] = “karnataka”;2. $state[] = array(“karnataka”);3. $state[0] = “karnataka”;4. $state = array(“karnataka”); Only 1 3 and 4 2, 3 and 4 2 and 3 Only 1 3 and 4 2, 3 and 4 2 and 3 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$cars = array("Volvo", "BMW", "Toyota");echo "I like " . $cars[2] . ", " . $cars[1] . " and " . $cars[0] . "."; I like Toyota, BMW and Volvo I like Volvo, Toyota and BMW I like BMW, Volvo and Toyota I like Volvo, BMW and Toyota I like Toyota, BMW and Volvo I like Volvo, Toyota and BMW I like BMW, Volvo and Toyota I like Volvo, BMW and Toyota 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_keys_exists() array_key_exists() arrays_key_exists() array_key_exist() array_keys_exists() array_key_exists() 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) 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 ANSWER DOWNLOAD EXAMIANS APP