jwk811 Posted December 31, 2006 Share Posted December 31, 2006 i want one piece of script to echo the same thing a certain amount of times.. how can i do this? the script its going to echo is a complete html table. Quote Link to comment Share on other sites More sharing options...
dbo Posted December 31, 2006 Share Posted December 31, 2006 $times = 10;for( $i = 0; $i < $times; ++$i ){ echo "<table><tr><td>Table $i</td></tr></table>\n";} Quote Link to comment Share on other sites More sharing options...
trq Posted December 31, 2006 Share Posted December 31, 2006 [url=http://php.net/str_repeat]str_repeat[/url](). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.