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 ( 35 37 43 ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( Peter Ben Joe ) Array ( “[Peter] => 35” “[Ben] => 37” “[Joe] => 43” ) Array ( 35 37 43 ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( Peter Ben Joe ) Array ( “[Peter] => 35” “[Ben] => 37” “[Joe] => 43” ) 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"]; 11,35,000 karnataka population population 11,35,000 karnataka 11,35,000 11,35,000 karnataka population population 11,35,000 karnataka 11,35,000 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 array as the object'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 keys of that object as the array's elements An array with properties of that array as the object'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 keys of that object as the array's elements ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$a = array("a"=>"red", "b"=>"green", "c"=>"blue");echo array_shift($a);print_r ($a); blue red green none of the mentioned blue red green none of the mentioned ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$number = array ("4", "hello", 2);echo (array_sum ($number)); 4hello2 4 6 2 4hello2 4 6 2 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will the following script output?$array = array (1, 2, 3, 5, 8, 13, 21, 34, 55);$sum = 0;for ($i = 0; $i < 5; $i++) {$sum += $array[$array[$i]];}echo $sum; 78 5 NULL 19 78 5 NULL 19 ANSWER DOWNLOAD EXAMIANS APP