PHP Arrays What function computes the difference of arrays? diff_arrays array_diff arrays_diff diff_array diff_arrays array_diff arrays_diff diff_array 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] . ".".$brother; Sam is the brother of Bob and Bob) $brother Error Sam is the brother of Bob and Bob) $brother Sam is the brother of Bob and Bob) $brother Error Sam is the brother of Bob and Bob) $brother 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); Array ( [0] => apple [1] => mango [2] => peach ) Error Array ( [0] => pear [1] => orange ) Array ( [0] => apple [1] => mango ) Array ( [0] => apple [1] => mango [2] => peach ) Error Array ( [0] => pear [1] => orange ) Array ( [0] => apple [1] => mango ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What functions count elements in an array?1. count2. Sizeof3. Array_Count4. Count_array Option 3 and 4 Option 2 and 4 Option 1 and 2 Option 1 and 4 Option 3 and 4 Option 2 and 4 Option 1 and 2 Option 1 and 4 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code ?$a = array("a" => "Jaguar", "b" => "Land Rover", "c" => "Audi", "d" => "Maseratti");echo array_search("Audi", $a); c a d b c a d b 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($fname, $age);print_r($c); Array ( “[Peter] => 35” “[Ben] => 37” “[Joe] => 43” ) Array ( 35 37 43 ) Array ( Peter Ben Joe ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( “[Peter] => 35” “[Ben] => 37” “[Joe] => 43” ) Array ( 35 37 43 ) Array ( Peter Ben Joe ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) ANSWER DOWNLOAD EXAMIANS APP