PHP Classes
Icontem

Class: Persistent Array


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Cesar D. Rodas  >  Persistent Array  >  Download  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Persistent Array Support forum
Base name: parray
Description: Access flat file databases like arrays
Version: 1.0
Required PHP version: 5.0
License: BSD License
All time users: 606 users
All time rank: 3351
Week users: 3 users
Week rank: 2134
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Files Files  

Author

Picture of Cesar D. Rodas
Name: Cesar D. Rodas is available for providing paid consulting. Contact Cesar D. Rodas .
Published packages: 34 Browse this author's classes Browse this author's classes
Country: Paraguay Paraguay - PHP jobs in Paraguay
Home page: http://cesarodas.com/
Age: 22
All time rank: 12
Week rank: 9

Innovation Award

PHP Programming Innovation award nominee
March 2008
Number 6
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

Groups

Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Databases Database management, accessing and searching View top rated classes
Group folder image Data types Modeling and manipulating data types View top rated classes

Detailed description

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.

User ratings

There are not enough user ratings to display for this class.

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Files

File Role Description
Plain text file parray.php Class Main class
Plain text file test.php Test Testing
Download all files: parray.tar.gz parray.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products