News Feed
Jobs Feed
Sections




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

Blue Parabola Blog:
The SPL Deserves Some Reiteration
February 27, 2009 @ 08:45:35

On the Blue Parabola blog Matthew Turland has written up a post about a PHP something that might need a bit more love - the Standard PHP Library.

If any PHP extension is underrated, it's probably the SPL (Standard PHP Library). From what I can tell without having been involved in its development, its purpose is somewhat similar to the STL. A while back, it was useful mainly for allowing class instances to be iterable and simulate array access. [...] Using the SPL classes actually turned out to be pretty straightforward once you got your hands on a good starting guide or two to help you beat the learning curve.

He mentions a few of the things offered by the SPL like the SplFixedArray/SplFastArray, Iterators, SplDoublyLinkedList, SplStack and SplQueue (among others). He also includes some benchmarks running standard code (like normal arrays) against a SPL counterpart - the SPL side beat the normal side hands down. Check out the full post for all of the numbers and comparison types.

0 comments voice your opinion now!
spl standard library iterator array queue list stack benchmark


blog comments powered by Disqus

Similar Posts

MaltBlue.com: 5 Reasons Coding Standards Are Essential

Developer Tutorials Blog: Easy Screen Scraping in PHP with the Simple HTML DOM Library

SitePoint PHP Blog: Getting Started with PHP Extension Development via PHP-CPP

Mfana Ronald Conco's Blog: RabbitMQ and PHP Part 2 - Durable Queues and Persistent Messages

Christian Weiske's Blog: Importing huge XML files using PHP5 - efficiently and conveniently


Community Events











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


symfony2 example package podcast unittest hhvm application overview code facebook release component install hack framework introduction language opinion security composer

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