Programming Basics

  Home arrow Programming Basics arrow Looping in PHP
PROGRAMMING BASICS

Looping in PHP
By: bluephoenix
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 4
    2004-08-19

    Table of Contents:
  • Looping in PHP
  • While Loops
  • Do-While Loops
  • For Loops
  • Conclusion

  •  
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    advertisement

    Looping in PHP


    (Page 1 of 5 )

    Computers are happy to perform repetitive tasks... so let them! This tutorial highlights 3 handy structures for making your scripts perform such tasks: while loops, do-while loops and for loops.

    Besides acting as big solid paperweights, computers are good at performing repetitive tasks. Over and over and over and over and over again ad infinitum, computers will happily do a task without complaining.

    However, most people I know aren't so patient or devout with their tasks; even the most engrossing activity would bore someone beyond a certain point. And as a whole, programmers are probably some of the most bored and laziest people. After all, why should they waste their time when a computer will happily perform the repetitive task for them?

    In this tutorial I'll highlight three constructs programmers use to make a script repeat a set of instructions: while loops, do-while loops and for loops.

    More Programming Basics Articles
    More By bluephoenix

    blog comments powered by Disqus

    PROGRAMMING BASICS ARTICLES

    - Control Flow Constructs
    - More Time Manipulation with PHP
    - Validating and Manipulating Dates with PHP
    - Using the Date Constructor in PHP
    - Calendar Construction with PHP
    - PHP`s Calendar Package
    - Getting Modified Versions and Correct Dates ...
    - Combining Date Functions in PHP
    - Using PHP for Date and Time in Programming
    - More Exception Handling with PHP
    - Exception Handling in PHP
    - Error Logging and Handling Exceptions
    - Configuration Directives for Error and Excep...
    - Error and Exception Handling
    - Python Modules for Games


    © 2003-2012 by Developer Shed. All rights reserved. DS Cluster 5 - Follow our Sitemap