PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 228 All time: 8,152 This week: 263Up
Version License PHP version Categories
file-array 1.0Freeware5.0PHP 5, Files and Folders, Data types


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 <contact>
Classes: 3 packages by
Country: Mauritius Mauritius
Age: 34
All time rank: 23682 in Mauritius Mauritius
Week rank: 658 Up1 in Mauritius Mauritius Up
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  
This week:0
All time:8,152
This week:263Up