Fresh PHP news, tutorials, tips and much more

Iterating PHP objects

Akash Mehta in Developer Tutorials site posted new post in object orientated programming. Article shows how developer can easy setup their object iteration with couple simple code lines.

The Standard PHP Library (SPL) religiously utilises iteration for some outstanding results (and great code simplicity). PHP’s native language constructs are very readable, and by simplifying our code we can build applications faster and more effectively. The SPL demonstrates this with the power of its classes integrating with language constructs, such as the foreach loop.

Author gives simple example of how you can use objects iteration in your php applications. Also object iteration makes code more readable.

Post tagged with: , , ,

Leave a Reply