PHP + Echo Data Routinely
<p>I have the following PHP code working 'successfully' to display URL's:</p>

<pre><code>     &lt;?php 
       for ($i = 0; $i &lt;= $json-&gt;domaincount; $i++) {
         echo '&lt;td class="domainList"&gt;&lt;a href="'.$json-&gt;$i.'" target="_blank"&gt;'.$json-&gt;$i.'&lt;/a&gt;&lt;/td&gt;';
       }    
     ?&gt;
</code></pre>

<p>Every forth echo I want to also </p>

<pre><code> echo &lt;/tr&gt;&lt;tr&gt; 
</code></pre>

<p>to start a new line in the table.
Is there an easy way to know which is every forth count?
I have $i which increments from 0 up so when it gets to 3, 7, 11 etc I need to change table line.</p>

<p>thx</p>
