Iteration over an object
<ul>
<li>I need some help please regarding PDOStatement::commit (from phpnet manual)  </li>
<li><p>I don't understand Example #1, because of this part of the code:  </p>

<pre><code>foreach ($fruits as $fruit) {  
    $sth-&gt;execute(array(  
        $fruit-&gt;name,  
        $fruit-&gt;colour,  
        $fruit-&gt;calories,  
    )
);  
</code></pre></li>
</ul>

<p>1#<br>
- Does it iterate over an object, array or what?<br>
- I've tried both ... and of course, both give errors<br>
- Definitely, the -> operator tells me that it's an object, but I still don't understand the syntax.
- It is possible to iterate/acces simultaneously more than one property of an object?<br>
2#<br>
- When it is said "Insert multiple records...", I understand "more than one row", am I wrong?  </p>

<ul>
<li>Thank you.</li>
</ul>
