<?php
$a = array(
array(
'week' => 26,
'#orders_CA' => 0,
'cost_CA' => 0,
'#orders_US' => 3,
'cost_US' => 18.99,
'#orders_INTERNATIONAL' => 0,
'cost_INTERNATIONAL' => 0
),
array(
'week' => 26,
'#orders_CA' => 0,
'cost_CA' => 0,
'#orders_US' => 0,
'cost_US' => 0,
'#orders_INTERNATIONAL' => 22,
'cost_INTERNATIONAL' => 32
),
);
array_reduce($a, function($k) use($k) {
print_r($k);
});
preferences:
36.76 ms | 402 KiB | 5 Q