Skip to Main Content
PHP Master
book

PHP Master

by Davey Shafik, Lorna Mitchell, Matthew Turland
October 2011
Intermediate to advanced content levelIntermediate to advanced
400 pages
9h 23m
English
SitePoint
Content preview from PHP Master

Appendix B. SPL: The Standard PHP Library

SPL, the Standard PHP library—first introduced with PHP 5.0—provides many handy features for PHP projects. You’ll remember we mentioned its provision of iterator interfaces in Chapter 4—but this is just one of its many useful facets.

The Standard PHP Library is intended to provide best of breed interfaces—as well as abstract and concrete implementations of design patterns and solutions to common problems—while taking advantage of the new object oriented features provided in PHP 5.

ArrayAccess and ArrayObject

If you want to create an object that can be accessed using array syntax (and is seen as an array for all functions requiring one), you can implement the ArrayAccess interface. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP Object-Oriented Solutions

PHP Object-Oriented Solutions

David Powers
PHP 5 Unleashed

PHP 5 Unleashed

John Coggeshall
Intermediate PHP

Intermediate PHP

Lorna Jane Mitchell

Publisher Resources

ISBN: 9780987090874Errata