Example usage of a number of the PHP SPL classes
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
directory-iterator-example
directory-iterator
README.md
caching-iterator.php
directory-iterator-pt2.php
directory-iterator.php
filter-iterator.php
iterator-callback.php
limit-iterator.php
observable.php
observer-exception-handler.php
observer-subject-events.php
pdo-iterator.php
recursive-caching-iterator.php
recursive-directory-iterator.php
recursive-regex-iterator.php
regex-iterator.php
simplexml-iterator.php

README.md

About this Repository

This repository aims to be a community wiki (a la git pull requests) of useful PHP Standard Template Library (SPL) examples. The php.net website lacks user submitted examples in the SPL department, so Queen City PHP (http://qcphp.org) is taking the initiative to provide examples and spread the word.

All of the base level PHP files are working examples of their SPL iterator counterparts. Documentation will be added to the readme in the future.

Regarding the Examples

Each example can be run from the command line, i.e.:

php -f caching-iterator.php

Which will produce example output in your console/terminal.

Bitdeli Badge