Assignment:3 Set A Q.2 Solution

Q.2. Write a PHP program to perform the following operations on an associative array: a) Display the elements of an array along with the keys. b) Display the size of an array c) Delete an element from an array from the given index. d) Reverse the order of each element’s key-value pair e) Traverse the elements in an array in random order.