PHP Quiz (Set 9) PHP (Set 9) 1 / 10 What is the purpose of the 'array_unique()' function when used with a multidimensional array in PHP? To remove duplicate values from each subarray To remove duplicate subarrays To reverse the order of subarrays To remove duplicate values from the entire multidimensional array 2 / 10 What is the purpose of the 'array_sum()' function in PHP? To calculate the product of all elements in an array To find the largest element in an array To calculate the sum of all elements in an array To find the average of all elements in an array 3 / 10 What is the purpose of the 'array_reverse()' function when used with a multidimensional array in PHP? To reverse the order of elements in each subarray To reverse the order of subarrays To sort the subarrays in descending order To flatten the multidimensional array 4 / 10 What is the purpose of the 'array_rand()' function in PHP? To find the index of a random element in an array To retrieve a random element from an array To shuffle the elements of an array To sort an array in ascending order 5 / 10 What is the purpose of the 'array_diff()' function in PHP? To find the difference between two arrays To combine two arrays into a single array To merge two arrays and remove duplicates To remove the last element from an array 6 / 10 What is the purpose of the 'array_values()' function in PHP? To retrieve the keys of an array To retrieve the values of an array To reverse the order of elements in an array To sort the values of an array 7 / 10 Which PHP function is used to get the number of elements in an array? array_length() count() length() size() 8 / 10 What is the purpose of the 'array_intersect()' function in PHP? To find the intersection of multiple arrays To combine two arrays into a single array To merge two arrays and remove duplicates To remove the last element from an array 9 / 10 What is the purpose of the 'array_combine()' function in PHP? To combine two arrays into a single array To merge two arrays and remove duplicates To create a new array by using one array for keys and another for values To reverse the order of elements in an array 10 / 10 What is the purpose of the 'array_push()' function in PHP? To add a new key-value pair to an array To remove the last element from an array To add one or more elements to the end of an array To merge two arrays into a single array Your score isThe average score is 0% 0% Restart quiz