Login   Register  
PHP Classes
elePHPant
Icontem

PHP File Array: Store and retrieve values from files as arrays

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-08-06 (4 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 206 All time: 7,250 This week: 1,519Up
Version License PHP version Categories  
file-array 1.0Freeware5.0PHP 5, Files and Folders, Data types
Description Author  

This class can store and retrieve values from files as if they were arrays.

It provides an ArrayAccess interface so you can store and retrieve values of arbitrary types in files.

Each array entry value is encoded with base64 algorithm and stored with a line break to distinguish from other entries.

The class reads a given number of lines according to the position of the array entry it needs to read and decode from the array file.

Innovation Award  
PHP Programming Innovation award nominee
August 2014
Number 12
Files are often used to store information laid out in a sequence.

This class implements the ArrayAccess interface to store information a file using array indexes as sequence numbers.

Manuel Lemos
Picture of tobytobs
Name: tobytobs <contact>
Classes: 3 packages by
Country: Nigeria Nigeria
Age: ???
All time rank: 21886 in Nigeria Nigeria
Week rank: 1078 Up6 in Nigeria Nigeria Equal
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file FileArray.php Class The FileArray Object class
Accessible without login Plain text file Sample.php Example Sample usage of the filearray class

 Version Control Unique User Downloads Download Rankings  
 0%Total:206All time:7,250
 This week:0This week:1,519Up