PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
  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 (2 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 219 All time: 7,652 This week: 1,089Up
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
  Performance   Level  
Name: tobytobs is available for providing paid consulting. Contact tobytobs .
Classes: 3 packages by
Country: Mauritius Mauritius
Age: 27
All time rank: 22662 in Mauritius Mauritius
Week rank: 1325 Up2 in Mauritius Mauritius 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:219
This week:0
All time:7,652
This week:1,089Up