The PHP for loop | C.S. Rhymes C.S. Rhymes HomeBooksNigel's Intranet AdventureHow NOT to make a WebsiteHow NOT to use a SmartphoneMy WorkThemesPackagesSitesDemosStoriesSponsorsAboutBlogSponsorThe PHP for loopPHP FundamentalsPublished: Sep 13, 2021 by C.S. RhymesIf you have something you want to repeat then consider using a PHP for loop, saving you from copying and pasting the same code multiple times. Adding the code into a loop means you only have to write it once, and you also only have to maintain the code in one place in future.The PHP for loop allows you to loop a defined number of times, until a defined condition is no longer true.for($i=0;$i