I have the array below which I need to split into smaller arrays based on the [location] key (so I'd like an array of .co.uk and an array of .com). The [location] key is not limited to .co.uk or .com.
Any help is appreciated.
[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/
)