【发布时间】:2011-01-02 12:14:53
【问题描述】:
我有一个数组,我需要根据 [location] 键将其拆分为更小的数组(所以我想要一个 .co.uk 数组和一个 .com 数组)。 [location] 键不限于 .co.uk 或 .com。
感谢任何帮助。
[22] => Array
(
[query] => tttt
[location] => .co.uk
[x] => 1292889600
[y] => 1
[fullurl] => http://www.tttt.com/
)
[20] => Array
(
[query] => tttt
[location] => .co.uk
[x] => 1292976000
[y] => 1
[fullurl] => http://www.tttt.com/
)
[21] => Array
(
[query] => tttt
[location] => .com
[x] => 1292976000
[y] => 1
[fullurl] => http://www.tttt.com/
)
[19] => Array
(
[query] => tttt
[location] => .co.uk
[x] => 1293062400
[y] => 1
[fullurl] => http://www.tttt.com/
)
[18] => Array
(
[query] => tttt
[location] => .com
[x] => 1293062400
[y] => 1
[fullurl] => http://www.tttt.com/
)
[17] => Array
(
[query] => tttt
[location] => .co.uk
[x] => 1293148800
[y] => 1
[fullurl] => http://www.tttt.com/
)
[16] => Array
(
[query] => tttt
[location] => .com
[x] => 1293148800
[y] => 1
[fullurl] => http://www.tttt.com/
)
[14] => Array
(
[query] => tttt
[location] => .com
[x] => 1293235200
[y] => 1
[fullurl] => http://www.tttt.com/
)
【问题讨论】:
标签: php