This question already has an answer here:
I have an array of objects from class Volume. I am looking for the best way to return the _description property given an _id value (accessor method is get_description).
In the below example, I would provide "vol-e123456a3" and it would return "server E: volume".
[0] => Volume Object
(
[_snapshot_count:protected] => 16
[_id:protected] => vol-e123456a3
[_description:protected] => server E: volume
[_region:protected] => us-east-1
[_date_created:protected] => DateTime Object
(
[date] => 2013-04-06 10:29:41
[timezone_type] => 2
[timezone] => Z
)
[_size:protected] => 100
[_state:protected] => in-use
)
</div>