News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Zend Developer Zone:
The Standard PHP Library (SPL)
September 26, 2007 @ 07:52:31

The Zend Developer Zone has posted a new article/tutorial from Ben Ramsey covering one of the more powerful bits of functionality that's included with PHP5 - the Standard PHP Library (SPL).

As its name implies, the goal of the Standard PHP Library-or SPL, for short-is to provide a standard library of interfaces that allows developers to take full advantage of object-oriented programming in PHP 5. [...] The functionality it provides includes, for example, the ability to define how your objects will react when iterated over with foreach, advanced array access, file and directory access, and advanced SimpleXML object handling. The largest chunk of functionality that the SPL provides comes in the form of iterators.

Ben focuses on the iterators - three different kinds: IteratorAggregate, RecursiveIterator and SeekableIterator. The SPL also comes with a few other built-in kinds of iterators he mentions as well:

  • ArrayIterator
  • DirectoryIterator
  • FileIterator

As a bonus, he also talks about other "goodies" the SPL has to offer like exceptions, array handling, and file/directory access.

Also, check out Ben's comments on his own blog about the article.

0 comments voice your opinion now!
spl standardphplibrary tutorial iterator goodies array directory file spl standardphplibrary tutorial iterator goodies array directory file


blog comments powered by Disqus

Similar Posts

Tobias Schlitt's Blog: A Two-day Look at PHPWeekender

IBM developerWorks: Developing PHP the Ajax way, Part 2 - Back, Forward, Reload

Rob Allen's Blog: Zend Framework Tutorials (an Update and Zend_Auth)

IBM developerWorks: Paint 3-D images with PHP

PHP-Coding-Practices.com: How I Turned A Slow Array Sort Into A Quick One Using Quicksort Algorithm


Community Events





Don't see your event here?
Let us know!


deployment framework update interview language laravel package symfony tips opinion community introduction api library series zendserver install release podcast list

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework