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, 3 and 4 2 and 3 3 and 4 Only 1 2, 3 and 4 2 and 3 3 and 4 Only 1 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Array values are keyed by ______ values (called indexed arrays) or using ______ values (called associative arrays). Of course, these key methods can be combined as well. Float, string Integer, string String, Boolean Even number, string Positive number, negative number Float, string Integer, string String, Boolean Even number, string Positive number, negative number ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What function computes the difference of arrays? diff_arrays diff_array arrays_diff array_diff diff_arrays diff_array arrays_diff array_diff ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which function will return true if a variable is an array or false if it is not? in_array() is_array() this_array() do_array() in_array() is_array() this_array() do_array() 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 ( [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 ) Array ( [35] => Peter [37] => Ben [43] => Joe ) 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 array's elements An array with properties of that object as the Key elements An array with properties of that array as the object's elements An array with keys of that object as the array'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 properties of that array as the object's elements An array with keys of that object as the array's elements ANSWER DOWNLOAD EXAMIANS APP