嗨,这是我的数组,我需要删除重复值,请帮我解决
Array ( [0] => Array ( [0] =>
* garfield calicut
Address: tanil nadu chennai0696955666
About Company: re stored.
[1] => 0.0004 [2] => 0 ) [1] => Array ( [0] =>
* gamut
Address: ashok puram calicut9865326921
About Company: You've come.
* garfield calicut
Address: tanil nadu chennai0696955666
About Company: re stored.
* Hyva It Solutions
Address: 697 / 75,30th Cross
About Company: Hyva IT Solutions.
* streem pvt Ltd
Address: onden road kannur9845672062
About Company: Go to the website
* Advanced It Wave
Address: Ayyappankavu, Ernakulam (North),
About Company: Website Developement Services
* Viral Industry
Address: vettiyar, kodam p o tramp8469666663
About Company: # for discussion
[1] => 0.0008 [2] => 0 ) [2] => Array ( [0] => company [1] => 0.0007 [2] => 1 ) )这里有“garfield calicut Address: tanil nadu chennai0696955666 About Company: re stored”。重复,我只需要显示一次。
发布于 2010-03-28 04:25:52
如果将数组展平为只包含地址的数组,则始终可以使用
$addresses = array("street a', 'street b', 'street a'); // 3 elements
$addresses = array_unique($addresses); // remove duplicateshttps://stackoverflow.com/questions/2528412
复制相似问题