Home  >  Article  >  Backend Development  >  php二维数组除去重合数据

php二维数组除去重合数据

WBOY
WBOYOriginal
2016-06-13 12:44:10695browse

php二维数组去除重合数据
Array
(
    [0] => Array
        (
            [knowledge_id] => 1
            [tag_id] => 2
        )

    [1] => Array
        (
            [knowledge_id] => 1
            [tag_id] => 3
        )

)

把他里面量相同的[knowledge_id] => 1合并只留一个??????

PHP 二维数组
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn