I have the following array:
Array
(
[0] => Array
(
[id] => 4
[rate] => 82.50
[pounds] => 2
[ounces] => 3
[mailtype] => Package
[country] => UNITED KINGDOM (GREAT BRITAIN)
[svccommitments] => 1 - 3 business days
[svcdescription] => Global Express Guaranteed (GXG)
[maxdimensions] => Max. length 46", width 35", height 46" and max. length plus girth combined 108"
[maxweight] =>30
)
[1] => Array
(
[id] => 6
[rate] => 82.50
[pounds] => 2
[ounces] => 3
[mailtype] => Package
[country] => UNITED KINGDOM (GREAT BRITAIN)
[svccommitments] => 1 - 3 business days
[svcdescription] => Global Express Guaranteed Non-Document Rectangular
[maxdimensions] => Max. length 46", width 35", height 46" and max. length plus girth combined 108"
[maxweight] => 70
)
And I want to use CakePHP's Set:extract tools to filter this array on the 'maxweight', so all elements that have a 'maxweight' more than X and get an array made up of the 'rate' and 'svcdescription' fields ie:
Array (
[82.50] => Global Express Guaranteed Non-Document Rectangular
...
etc
)
Is this at all possible?