What will be the output of the following PHP code?
<?php
 $age = array(“Harry” => “21”, “Ron” => “23”,”Malfoy” => “21”);
 array_pop($age);
 print_r(array_change_key_case($age, CASE_UPPER));
?>
a)	Array ( [Harry] => 21 [Ron] => 23 [Malfoy] => 21 )
b)	Array ( [HARRY] => 21 [RON] => 23 [MALFOY] => 21 )
c)	Array ( [HARRY] => 21 [RON] => 23 )
d)	Array ( [Harry] => 21 [Ron] => 23 )
 Answer: c
    Explanation: The function array_pop() will delete the last element of an array. So Malfoy => 21 will be deleted and the function array_change_key_case() will change all keys in an array to lowercase or uppercase.
						
						
												
							Related Posts
- Empdt1(empcode, name, street, city, state, pincode).
 For any pincode, there is only one city and state. Also, for given street, city and state, there is just one pincode. In normalization terms, empdt1 is a relation in
- Which forms are based on the concept of functional dependency:
- Which forms has a relation that possesses data about an individual entity:
- Which forms simplifies and ensures that there are minimal data aggregates and repetitive groups:
- Which is a bottom-up approach to database design that design by examining the relationship between attributes:
- Functional Dependencies are the types of constraints that are based on______
- Which-one ofthe following statements about normal forms is FALSE?
Join The Discussion