Return to Snippet

Revision: 32305
at September 22, 2010 03:02 by bedomax


Initial Code
<?php
function super_unique($array)
{
  $result = array_map("unserialize", array_unique(array_map("serialize", $array)));

  foreach ($result as $key => $value)
  {
    if ( is_array($value) )
    {
      $result[$key] = super_unique($value);
    }
  }

  return $result;
}
?>

Initial URL

                                

Initial Description

                                

Initial Title
Function Array Unique

Initial Tags
php, array, function

Initial Language
PHP