PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 229 All time: 8,173 This week: 488Up
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  
Innovation award
Innovation award
Nominee: 1x

 

  Files folder image Files (2)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:229
This week:0
All time:8,173
This week:488Up