/ Published in: PHP
Courtesy of Dorphalsig on php.net (see URL above)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// remove duplicate elements from n-dimensional arrays function uniqueArray($nDimArray) { foreach($nDimArray as &$val) { } foreach($nDimArray as &$val) { } return $nDimArray; }
URL: http://www.php.net/manual/en/function.array-unique.php#84750