PHP Arrays What function computes the difference of arrays? diff_arrays arrays_diff diff_array array_diff diff_arrays arrays_diff diff_array array_diff 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”); 2 and 3 2, 3 and 4 3 and 4 Only 1 2 and 3 2, 3 and 4 3 and 4 Only 1 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] => Mumbai [0] => Beijing ) Array ( [1] => NYC [0] => London ) Array ( [0] => NYC [1] => London ) Array ( [0] => Mumbai [1] => Beijing ) Array ( [1] => Mumbai [0] => Beijing ) Array ( [1] => NYC [0] => London ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which function will return true if a variable is an array or false if it is not? this_array() is_array() do_array() in_array() this_array() is_array() do_array() in_array() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What array will you get if you convert an object to an array? An array with properties of that object as the Key elements An array with keys of that object as the array's elements An array with properties of that array as the object's elements An array with properties of that object as the array's elements An array with properties of that object as the Key elements An array with keys of that object as the array's elements An array with properties of that array as the object's elements An array with properties of that object as the array's elements 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 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 Sam is the brother of Bob and Bob) Error ANSWER DOWNLOAD EXAMIANS APP