php remove duplicates from multidimensional array by value

前端 未结 4 913
臣服心动
臣服心动 2020-12-20 13:52

I would like to remove duplicates by value as you can see from the list_title. I know there are several questions and answers to this but their solution doesn\'

4条回答
  •  生来不讨喜
    2020-12-20 14:25

    Try this

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

提交回复
热议问题