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

php二维数组除去重合数据

WBOY
Release: 2016-06-13 12:44:10
Original
715 people have browsed it

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

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

)

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

PHP 二维数组
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template