Categorized | News

The ArrayObject in PHP5

Posted on 15 December 2004 by Demian Turner

Haven’t been watching Devshed closely enough, they’ve just put out their second article on SPL, the Standard PHP Library, something which otherwise is difficult to get material on.

While the first article was a decent overview of PHP’s implementation of Exceptions, this one examines the ArrayObject and gives an example of traversing the filesystem in even fewer LOC than before 😉

When you look at the class definition, ie which interfaces are being implemented:

class ArrayObject implements IteratorAggregate,
ArrayAccess, Countable { … }

it seems there are more language level objects available than meets the eye.

Bookmark and Share

1 Comments For This Post

  1. demian Says:

    Harry Fuecks also this this article on SPL.

Leave a Reply

Categories

Books

Demian Turner's currently-reading book recommendations, reviews, favorite quotes, book clubs, book trivia, book lists

Facebook