PHP Arrays Which in-built function will add a value to the end of an array? array_push() array_unshift() inend_array() into_array() array_push() array_unshift() inend_array() into_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; $brother Sam is the brother of Bob and Bob) Sam is the brother of Bob and Bob) $brother Error $brother Sam is the brother of Bob and Bob) Sam is the brother of Bob and Bob) $brother Error ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which function returns an array consisting of associative key/value pairs? array_count_values() count_values() array_count() count() array_count_values() count_values() array_count() count() 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 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 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 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"]; population 11,35,000 karnataka population karnataka 11,35,000 11,35,000 population 11,35,000 karnataka population karnataka 11,35,000 11,35,000 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$place = array("NYC", "LA", "Paris");array_pop($place);$place1 = array("Paris");$place = array_merge($place, $place1);print_r($place); Array ( [0] => LA [1] => Paris [2] => Paris ) None of the mentioned Array ( [0] => NYC [1] => LA [2] => Paris) Array ( [0] => NYC [1] => LA [2] => Paris [3] => Paris ) Array ( [0] => LA [1] => Paris [2] => Paris ) None of the mentioned Array ( [0] => NYC [1] => LA [2] => Paris) Array ( [0] => NYC [1] => LA [2] => Paris [3] => Paris ) ANSWER DOWNLOAD EXAMIANS APP