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.
 
 
 
 
 
 
Marcus Boerger b0620b27be Rename header to prevent name clashes with external files 23 years ago
..
examples Show classname 23 years ago
tests Fix problems with manual iteration 23 years ago
CREDITS Add spl extension 24 years ago
EXPERIMENTAL Add spl extension 24 years ago
README typos 23 years ago
TODO Update 23 years ago
config.m4 Add class SimpleXMLIterator 23 years ago
config.w32 don't enable by default; causes simplexml build to fail 23 years ago
package.xml Fix dependancy 23 years ago
php_spl.c Add class SimpleXMLIterator 23 years ago
php_spl.h Update copyright 23 years ago
spl.php Update 23 years ago
spl_array.c Update copyright 23 years ago
spl_array.h Update copyright 23 years ago
spl_directory.c Update copyright 23 years ago
spl_directory.h Add class SimpleXMLIterator 23 years ago
spl_engine.c Update copyright 23 years ago
spl_engine.h Update copyright 23 years ago
spl_functions.c Update copyright 23 years ago
spl_functions.h Update copyright 23 years ago
spl_iterators.c Not needed 23 years ago
spl_iterators.h Update copyright 23 years ago
spl_sxe.c Rename header to prevent name clashes with external files 23 years ago
spl_sxe.h Add class SimpleXMLIterator 23 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