PHP Arrays What will be the output of the following PHP code?$state = array ("Karnataka", "Goa", "Tamil Nadu", "Andhra Pradesh");echo (array_search ("Tamil Nadu", $state) ); False 2 1 True False 2 1 True ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays PHP’s numerically indexed array begin with position ______. 0 2 -1 1 0 2 -1 1 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Absent any actual need for choosing one method over the other, does passing arrays by value to a read-only function reduce performance compared to passing them by reference? No Yes, because PHP must monitor the execution of the function to determine if changes are made to the array. Yes, because the interpreter must always create a copy of the array before passing it to the function. Yes, but only if the function modifies the contents of the array. Yes, but only if the array is large. No Yes, because PHP must monitor the execution of the function to determine if changes are made to the array. Yes, because the interpreter must always create a copy of the array before passing it to the function. Yes, but only if the function modifies the contents of the array. Yes, but only if the array is large. 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 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] => 2 [Cat] => 1 [Dog] => 1) Array ( [A] => 1 [Cat] => 1 [Dog] => 2 ) Array ( [A] => 2 [Cat] => 1 [Dog] => 2 ) Array ( [A] => 2 [Cat] => 2 [Dog] => 1 ) Array ( [A] => 2 [Cat] => 1 [Dog] => 1) Array ( [A] => 1 [Cat] => 1 [Dog] => 2 ) Array ( [A] => 2 [Cat] => 1 [Dog] => 2 ) Array ( [A] => 2 [Cat] => 2 [Dog] => 1 ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$number = array ("4", "hello", 2);echo (array_sum ($number)); 4hello2 4 2 6 4hello2 4 2 6 ANSWER DOWNLOAD EXAMIANS APP