Home >Backend Development >PHP Tutorial >php数据有关问题,

php数据有关问题,

WBOY
WBOYOriginal
2016-06-13 11:37:431031browse

php数据问题,请教高手!
有这样一个数组:

Array<br />(<br />    [0] => Array<br />        (<br />            [time] => 1382060855000<br />            [day] => 2013-10-18<br />            [latitude] => 39.9289<br />            [longitude] => 116.3883<br />        )<br /><br />    [1] => Array<br />        (<br />            [time] => 1382060855000<br />            [day] => 2013-10-18<br />            [latitude] => 42<br />            [longitude] => 43.5<br />        )<br /><br />    [2] => Array<br />        (<br />            [time] => 1382060855000<br />            [day] => 2013-10-18<br />            [latitude] => 38.9122<br />            [longitude] => 121.6022<br />        )<br /><br />    [3] => Array<br />        (<br />            [time] => 1382060855000<br />            [day] => 2013-10-18<br />            [latitude] => 40.5525<br />            [longitude] => -74.2915<br />        )<br /><br />    [4] => Array<br />        (<br />            [time] => 1382060855000<br />            [day] => 2013-10-18<br />            [latitude] => 40.5525<br />            [longitude] => -74.2915<br />        )<br /><br />    [5] => Array<br />        (<br />            [time] => 1382060855000<br />            [day] => 2013-10-18<br />            [latitude] => 38.9122<br />            [longitude] => 121.6022<br />        )<br /><br />    [6] => Array<br />        (<br />            [time] => 1382060855000<br />            [day] => 2013-10-18<br />            [latitude] => 38.9122<br />            [longitude] => 121.6022<br />        )<br />)

里面的经纬度有重复的数据,想过滤掉重复数据,并且得到每一个相同经纬度的数量。最后得到的数组如下:


这个要怎么实现呢?

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