Skip to main contentSkip to sidebarSkip to footer
F13.DEVFriday 13th development

PHP Loops

  • Home
  • WordPress Plugins
  • Projects
  • Programming Blog
  • Photography
  • Contact
  • LinkedIn (F13Dev)
  • GitHub (F13Dev)
  • WordPress (F13Dev)
  • X (F13Dev)
  • Instagram (F13Dev)
  • F13.DEV
  • Blog Archives

PHP Loops

Structure that forms many loops

Loops are used in programming to iterate over an item, either for a known or unknown amount of times, until a certain criteria has been reached.

You have the choice of writing a single loop and specifying how it ends and writing the same code over and over again to satisfy every iteration of the loop (this will only work if you know the number of times the loop will run). The choice is yours.

Read more

31 October 2021 by jim


Table of Contents

  • Introduction
  • While
  • Do while
  • For
  • For each
  • Continue
  • Break
  • Conclusion
  • Comments
Navigation
  • Home
  • WordPress Plugins
  • Projects
  • Programming Blog
  • Photography
  • Contact
  • LinkedIn (F13Dev)
  • GitHub (F13Dev)
  • WordPress (F13Dev)
  • X (F13Dev)
  • Instagram (F13Dev)
Social links
  • LinkedIn
  • GitHub
  • WordPress
  • X (twitter)
  • Instagram
  • CodersRank
Information

Code snippets are released under the GNU General Public Licence V3. Any software available for public download will contain a text version of the license of which the software is relased under.

Friday 13th Development
F13.Dev © James Valentine 2015 - 2025

Read our Privacy policy or Accessability statement.