PHP Arrays What functions count elements in an array?1. count2. Sizeof3. Array_Count4. Count_array Option 3 and 4 Option 1 and 2 Option 2 and 4 Option 1 and 4 Option 3 and 4 Option 1 and 2 Option 2 and 4 Option 1 and 4 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) ); False 1 2 True False 1 2 True 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_slice ($fruits, 2);print_r ($subset); Array ( [0] => peach ) Array ( [0] => apple [1] => mango ) Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => peach [1] => pear [2] => orange ) Array ( [0] => peach ) Array ( [0] => apple [1] => mango ) Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => peach [1] => pear [2] => orange ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays PHP’s numerically indexed array begin with position ______. -1 1 2 0 -1 1 2 0 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; 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 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 ?$a = array("a" => "Jaguar", "b" => "Land Rover", "c" => "Audi", "d" => "Maseratti");echo array_search("Audi", $a); c b d a c b d a ANSWER DOWNLOAD EXAMIANS APP