【发布时间】:2012-04-25 12:24:39
【问题描述】:
我想从 php.ini 中的数组中删除重复元素。以下是数组的结构
Array
(
[0] => Array
(
[0] => xllga@hotmail.com
[1] => bounce@abc.com
[2] => 20120416135504.21734.qmail@abc.com
[3] => xllga@hotmail.com
[4] => info@abc.com
[5] => info@abc.com
[6] => xllga@hotmail.com
[7] => xllga@hotmail.com
)
)
怎么办?
【问题讨论】:
-
这些数据是使用 SQL 从表中拉回的吗?如果是这样,问题不能在那里解决吗? (a la GROUP BY) 只收到独特的回复?
-
尝试在php中使用array_unique
标签: php arrays duplicates array-unique