You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Tal Peer a3dc201d1e typos 22 years ago
..
examples Show classname 23 years ago
tests Cleanup 23 years ago
CREDITS Add spl extension 23 years ago
EXPERIMENTAL Add spl extension 23 years ago
README typos 22 years ago
TODO Update 23 years ago
config.m4 Major update: 23 years ago
config.w32 don't enable by default; causes simplexml build to fail 23 years ago
package.xml Fix dependancy 22 years ago
php_spl.c Update copyright 22 years ago
php_spl.h Update copyright 22 years ago
spl.php Update 23 years ago
spl_array.c Update copyright 22 years ago
spl_array.h Update copyright 22 years ago
spl_directory.c Update copyright 22 years ago
spl_directory.h Update copyright 22 years ago
spl_engine.c Update copyright 22 years ago
spl_engine.h Update copyright 22 years ago
spl_functions.c Update copyright 22 years ago
spl_functions.h Update copyright 22 years ago
spl_iterators.c Update copyright 22 years ago
spl_iterators.h Update copyright 22 years ago

README

This is an extension that aims to implement some efficient data access 
interfaces and classes. You'll find the classes documented using php
code in the file spl.php or in the corresponding .inc file in the examples
subdirectory. Based on the internal implementations or the files in the
examples subdirectory there are also some .php files to experiment with.

The .inc files are not included automatically because the are sooner or
later integrated into the extension. That means that you either need to
put the code of examples/autoload into your autoprepend file or that you
have to point your ini setting auto_prepend_file to this file.

1) Iterators

SPL offers some advanced iterator algorithms:

interface RecursiveIterator implements Iterator
class RecursiveIteratorIterator implements Iterator
abstract class FilterIterator implements Iterator
class ParentIterator extends FilterIterator implements RecursiveIterator

2) Directories

SPL offers two advanced directory classes.

class DirectoryIterator implements Iterator
class RecursiveDirectoryIterator extends DirectoryIterator implements RecursiveIterator