drupal读取数组类型字段

I have a multi value cck field.

I can read any single id with node->field_multip[0][id].

How do I read all ids? I tried a for loop with field_multip.length but the page never finishes loading. What's the right way of doing this?

field_multip
   [0] 
      [id]
      [sec]
   [1]
      [id]
      [sec]
   [2]
      [id]
      [sec]
foreach ($node->field_multip as $key => $value) {
    // code
}

Try this:

$array = ...
foreach($array as $obj) {
   //do something with $obj->id...
}