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.
 
 
 
 
 
 
Wez Furlong 62d3cccfc9 make it build under win32 23 years ago
..
examples Update __toString() issues 23 years ago
tests Cleanup 23 years ago
CREDITS Add spl extension 23 years ago
EXPERIMENTAL Add spl extension 23 years ago
README Update documentation 23 years ago
TODO Update 23 years ago
config.m4 Major update: 23 years ago
config.w32 make it build under win32 23 years ago
package.xml Add package file 23 years ago
php_spl.c Add classes from examples: FilterIterator, ParentIterator 23 years ago
php_spl.h make it build under win32 23 years ago
spl.php Update 23 years ago
spl_array.c Cleanup 23 years ago
spl_array.h Remove interfaces implemented in engine now 23 years ago
spl_directory.c Update __toString() issues 23 years ago
spl_directory.h Move object struct to header. 23 years ago
spl_engine.c Major update: 23 years ago
spl_engine.h Cleanup 23 years ago
spl_functions.c Major update: 23 years ago
spl_functions.h Fix macros 23 years ago
spl_iterators.c Remove debug code 23 years ago
spl_iterators.h Add classes from examples: FilterIterator, ParentIterator 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 intergrated 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 algorythmns:

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