note 109539 added to control-structures.while
| From: | maniarpratik at gmail dot com | Date: | Fri, 27 Jul 2012 06:30:16 +0000 |
| Subject: | note 109539 added to control-structures.while | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-189418@lists.php.net to get a copy of this message | ||
<?php
$a=1;
echo "<table align=center border=1><tr>";
while($a<=9)
{
echo "<td>$a</td>";
if($a%3==0)//if condition true it will close <tr>and start new <tr>
{
echo "</tr><tr>";
}
$a++;
}
echo "</tr></table>";
?>
----
Server IP: 59.162.86.8
Probable Submitter: 122.169.11.157
----
Manual Page -- http://www.php.net/manual/en/control-structures.while.php
Edit -- https://master.php.net/note/edit/109539
Del: integrated -- https://master.php.net/note/delete/109539/integrated
Del: useless -- https://master.php.net/note/delete/109539/useless
Del: bad code -- https://master.php.net/note/delete/109539/bad+code
Del: spam -- https://master.php.net/note/delete/109539/spam
Del: non-english -- https://master.php.net/note/delete/109539/non-english
Del: in docs -- https://master.php.net/note/delete/109539/in+docs
Del: other reasons-- https://master.php.net/note/delete/109539
Reject -- https://master.php.net/note/reject/109539
Search -- https://master.php.net/manage/user-notes.php