I have an array which is the result of a select query using Amazon SimpleDb.
Here is sample data when I print_r($result);
Array ( [0] => Array ( [N
The following will run trough the last part of your array by reference. Therefore edits that you make are reflected in the $result array.
$result
foreach ($result[0]['Attributes'] as &$item) { if ($item['Name'] == 'test_id') // do something }