Home  >  Article  >  Backend Development  >  php二位数组获取重复元素

php二位数组获取重复元素

WBOY
WBOYOriginal
2016-06-02 11:31:131140browse

php数组

<code>    $arr = array(        array('0001','0002'),        array('0001','0002','0003'),        array('0001','0002','0003','0005'),        array('0001','0002','1003','0005'),    );</code>

希望得到结果,获取重复元素
$arr = array(‘0001’,‘0002’);

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