Voting

: max(three, zero)?
(Example: nine)

The Note You're Voting On

regeda at inbox dot ru
16 years ago
recursive array unique for multiarrays

<?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;
}
?>

<< Back to user notes page

To Top