我有下面的数组,我需要根据[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] => …Run Code Online (Sandbox Code Playgroud) php ×1