You can use
array_map("array_unique", $array);
For more information on array_map()
you can visit PHP’s Docs.
More Related Contents:
- “Notice: Undefined variable”, “Notice: Undefined index”, “Warning: Undefined array key”, and “Notice: Undefined offset” using PHP
- Parse query string into an array
- How to group subarrays by a column value?
- Performance of FOR vs FOREACH in PHP
- Convert backslash-delimited string into an associative array
- php stdClass to array
- Preserve key order (stable sort) when sorting with PHP’s uasort
- Fatal error: Cannot use object of type mysqli_result [closed]
- PHP: Sort an array by the length of its values?
- Return index of highest value in an array
- Group array by subarray values
- Remove all elements from array that do not start with a certain string
- How do I count occurrence of duplicate items in array [duplicate]
- Recursively remove empty elements and subarrays from a multi-dimensional array
- How to convert an array into an object using stdClass() [duplicate]
- PHP remove duplicate values from multidimensional array
- scandir() to sort by date modified
- Print the keys of an array
- Parse error: Invalid numeric literal
- Notice: Undefined index when trying to increment an associative array in PHP
- PHP – Get key name of array value
- Group 2d array data using column value to create a 3d array
- While destructuring an array, can the same element value be accessed more than once?
- Remove unwanted elements from subarrays in multidimensional array
- How to convert array to a string using methods other than JSON?
- How to set an option from multiple options or array with different values to views as selected in select box using PHP
- How to iterate through a nested stdClass? [duplicate]
- PHP: Most frequent value in array
- How to get the object or class name?
- Convert delimited string into array key path and assign value