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) ); 2 True 1 False 2 True 1 False 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] . "."; Sam is the brother of Jack and Bob) Sam is the brother of Bob and Bob) Sam is the brother of Bob and Jack Error Sam is the brother of Jack and Bob) Sam is the brother of Bob and Bob) Sam is the brother of Bob and Jack Error ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What functions count elements in an array?1. count2. Sizeof3. Array_Count4. Count_array Option 1 and 2 Option 2 and 4 Option 1 and 4 Option 3 and 4 Option 1 and 2 Option 2 and 4 Option 1 and 4 Option 3 and 4 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"]; population 11,35,000 karnataka 11,35,000 11,35,000 karnataka population population 11,35,000 karnataka 11,35,000 11,35,000 karnataka population ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What function computes the difference of arrays? diff_array array_diff arrays_diff diff_arrays diff_array array_diff arrays_diff diff_arrays ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which in-built function will add a value to the end of an array? inend_array() array_unshift() into_array() array_push() inend_array() array_unshift() into_array() array_push() ANSWER DOWNLOAD EXAMIANS APP