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 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 Key elements An array with properties of that object as the array's 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 Key elements ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$array1 = array ("KA", "LA", "CA", "MA", "TA");$array2 = array ("KA", "IA", "CA", "GA", "TA");$inter = array_intersect ($array1, $array2);print_r ($inter); Array ( [1] => IA [3] => GA ) Array ( [1] => LA [3] => MA ) Array ( [0] => KA [2] => CA [4] => TA ) Array ( [0] => KA [1] => LA [2] => CA [3] => MA [4] => TA [5] => IA [6] => GA ) Array ( [1] => IA [3] => GA ) Array ( [1] => LA [3] => MA ) Array ( [0] => KA [2] => CA [4] => TA ) Array ( [0] => KA [1] => LA [2] => CA [3] => MA [4] => TA [5] => IA [6] => GA ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$a1 = array("a"=>"red", "b"=>"green", "c"=>"blue", "d"=>"yellow");$a2 = array("e"=>"red", "f"=>"green", "g"=>"blue");$result = array_diff($a1, $a2);print_r($result); Array ( [a] => red ) Array ( [e] => yellow ) Array ( [c] => blue ) Array ( [d] => yellow ) Array ( [a] => red ) Array ( [e] => yellow ) Array ( [c] => blue ) Array ( [d] => yellow ) ANSWER DOWNLOAD EXAMIANS APP
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 1 False True 2 1 False True ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What elements will the following script output?$array = array (true => 'a', 1 => 'b');var_dump ($array); None It will output NULL 1 => 'b' True => 'a', 1 => 'b' None It will output NULL 1 => 'b' True => 'a', 1 => 'b' 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. Even number, string Positive number, negative number String, Boolean Integer, string Float, string Even number, string Positive number, negative number String, Boolean Integer, string Float, string ANSWER DOWNLOAD EXAMIANS APP