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. Link to comment https://forums.phpfreaks.com/topic/32352-echo-data-times/ 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";} Link to comment https://forums.phpfreaks.com/topic/32352-echo-data-times/#findComment-150224 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](). Link to comment https://forums.phpfreaks.com/topic/32352-echo-data-times/#findComment-150225 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.