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 Bob and Bob) Error Sam is the brother of Jack and Bob) Sam is the brother of Bob and Jack Sam is the brother of Bob and Bob) Error 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?$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 population 11,35,000 karnataka 11,35,000 population 11,35,000 karnataka population 11,35,000 karnataka 11,35,000 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); Error Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => pear [1] => orange ) Array ( [0] => apple [1] => mango ) Error Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => pear [1] => orange ) Array ( [0] => apple [1] => mango ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code ?$city_west = array("NYC", "London");$city_east = array("Mumbai", "Beijing");print_r(array_replace($city_west, $city_east)); Array ( [0] => NYC [1] => London ) Array ( [0] => Mumbai [1] => Beijing ) Array ( [1] => NYC [0] => London ) Array ( [1] => Mumbai [0] => Beijing ) Array ( [0] => NYC [1] => London ) Array ( [0] => Mumbai [1] => Beijing ) Array ( [1] => NYC [0] => London ) Array ( [1] => Mumbai [0] => Beijing ) 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, but only if the function modifies the contents of the array. Yes, because PHP must monitor the execution of the function to determine if changes are made to the array. Yes, but only if the array is large. Yes, because the interpreter must always create a copy of the array before passing it to the function. No Yes, but only if the function modifies the contents of the array. Yes, because PHP must monitor the execution of the function to determine if changes are made to the array. Yes, but only if the array is large. Yes, because the interpreter must always create a copy of the array before passing it to the function. 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