You are here: Re: can php loops be continued throughout html « PHP Programming Language « IT news, forums, messages
Re: can php loops be continued throughout html

Posted by Peter Fox on 09/19/06 18:27

Following on from James McIninch's message. . .
>Certainly.
>
><?php for ($i=0; $i<100; ++$i) { ?>
>value of $i is <i><?=$i?></i>.
><?php } ?>

or

<?php
for ($i=0; $i<100; ++$i) {
print("<td><font color=red>$i</font></td>\n");
}
?>

<?php
for ($i=0; $i<100; ++$i) {
$s = vsprintf('%3d </font> %4.2f",array($i,$i/7));
print("<td><font color=red>$s</td>\n");
}
?>


--
PETER FOX Not the same since the submarine business went under
peterfox@eminent.demon.co.uk.not.this.bit.no.html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.demon.co.uk>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация