PHP Arrays What will be the output of the following PHP code ?$people = array("Peter", "Susan", "Edmund", "Lucy");echo pos($people); Lucy Edmund Peter Susan Lucy Edmund Peter Susan ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$fruits = array ("mango", "apple", "peach", "pear");$fruits = asort ($fruits);printr ($fruits); Array ( [1] => apple [0] => mango [2] => peach [3] => pear ) Array ( [1] => apple [0] => mango [3] => peach [2] => pear ) Error Array ( [0] => apple [1] => mango [2] => peach [3] => pear ) Array ( [1] => apple [0] => mango [2] => peach [3] => pear ) Array ( [1] => apple [0] => mango [3] => peach [2] => pear ) Error Array ( [0] => apple [1] => mango [2] => peach [3] => pear ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What functions count elements in an array?1. count2. Sizeof3. Array_Count4. Count_array Option 2 and 4 Option 1 and 2 Option 3 and 4 Option 1 and 4 Option 2 and 4 Option 1 and 2 Option 3 and 4 Option 1 and 4 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$fruits = array ("apple", "orange", "banana");echo (next($fruits));echo (next($fruits)); appleorange orangebanana orangeorange appleapple appleorange orangebanana orangeorange appleapple ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code ?$age = array("Harry" => "21", "Ron" => "23","Malfoy" => "21");array_change_key_case($age, CASE_UPPER);array_pop($age);print_r($age); Array ( [Harry] => 21 [Ron] => 23 [Malfoy] => 21 ) Array ( [Harry] => 21 [Ron] => 23 ) Array ( [HARRY] => 21 [RON] => 23 [MALFOY] => 21 ) Array ( [HARRY] => 21 [RON] => 23 ) Array ( [Harry] => 21 [Ron] => 23 [Malfoy] => 21 ) Array ( [Harry] => 21 [Ron] => 23 ) Array ( [HARRY] => 21 [RON] => 23 [MALFOY] => 21 ) Array ( [HARRY] => 21 [RON] => 23 ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following php code?$states = array("karnataka" => array( "population" => "11,35,000", "captial" => "Bangalore"),"Tamil Nadu" => array( "population" => "17,90,000","captial" => "Chennai") );echo $states["karnataka"]["population"]; karnataka 11,35,000 karnataka population population 11,35,000 11,35,000 karnataka 11,35,000 karnataka population population 11,35,000 11,35,000 ANSWER DOWNLOAD EXAMIANS APP