Programming
Article

PHPMaster: Learning Loops

By Iain Tench

A significant advantage of computers is that they can perform repetitive tasks easily and efficiently. Instead of writing repetitive code you can write a set of statements that processes some data and then have the computer execute them repeatedly by using a construct known as a loop. Loops come in several different flavors in PHP: for , while , do-while , and foreach . I’ll introduce you to each of them and show you how they can making repetitive tasks straightforward and easy to maintain

See the original post:
PHPMaster: Learning Loops

More:

No Reader comments

Recommended

Learn Coding Online
Learn Web Development

Start learning web development and design for free with SitePoint Premium!

Get the latest in Front-end, once a week, for free.