note 109538 deleted from control-structures.for by danbrown
| From: | danbrown@php.net | Date: | Mon, 30 Jul 2012 15:51:42 +0000 |
| Subject: | note 109538 deleted from control-structures.for by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189488@lists.php.net to get a copy of this message | ||
Note Submitter: maniarpratik at gmail dot com
----
<?php
echo "<table align=center border=1><tr>";
for($i=1;$i<=9;$i++)
{
echo "<td>$i</td>";
if($i%3==0)//if condition true it will close <tr>and start new <tr>
{
echo "</tr><tr>";
}
}
echo "</tr></table>";
?>