Assignment:3 Set B Q.3 Solution

Q.3. Write a menu-driven program in PHP to perform the following operations on associative arrays: i) Sort the array by values (changing the keys) in ascending, descending order. ii) Also, sort the array by values without changing the keys. iii) Find the intersection of two arrays. iv) Find the union of two arrays.