 |
|
Innovation award
 Nominee: 23x
Winner: 5x |
This class can be used to access flat file databases like arrays.
The class extends the SPL ArrayObject class to be able to retrieve, add, update and delete entries in flat file database files using the DBM extension.
It also provides an iterator class to be able to traverse the entries in a DBM file using the regular array access functions.
|
|
| Name: |
Persistent Array |
| Base name: |
parray |
| Description: |
Access flat file databases like arrays |
| Version: |
1.0 |
| PHP version: |
5.0 |
| License: |
BSD License |
| All time users: |
806 users |
| All time rank: |
3717 |
| Week users: |
1 user |
| Week rank: |
2020  |
| |
|
 March 2008
Number 6
Prize: One subscription to the PDF edition of the magazine by PHP Architect |
Arrays are a very popular data type used in PHP to store a variable number of information items.
If you want to store information of arrays in a file or database so you can retrieve later, you can serialize the array and store it as a single data chunk.
However, that is not a very efficient solution. If the array is large, it may take too much time to store and retrieve changes or look up for elements.
This package takes advantage of the PHP 5 array iterator objects and implements a wrapper that stores and retrieve array elements in a flat file database managed by the DBM API.
This way the array can be stored persistently in files and its elements can be accessed very quickly.
Manuel Lemos |
| There are not enough user ratings to display for this class. |
| |
Applications that use this class |
|
|
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| |
Files |
|
|