PHP Classes

Fuse Array: Manage arrays with read only properties

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files Example   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-07-27 (8 months ago) RSS 2.0 feedStarStarStar 40%Total: 237 All time: 7,159 This week: 1,334Up
Version License PHP version Categories  
fuse-array 1.0.0BSD License5.3PHP 5, Data types
Description Author  

This class can manage arrays with read only properties.

It implements the ArrayAccess interface so its objects can be manipulated as if they are arrays of value elements.

The class can make certain array entries read-only, so it throws an exception if an application attempts to change the values of those entries.

Innovation Award  
PHP Programming Innovation award nominee
July 2014
Number 4

Prize: One downloadable copy of Komodo IDE
Sometimes it is necessary to prevent that applications change the values of certain array entries.

This class implements the array access interface to emulate array values that may have certain entries disabled for change.

This way it can detect and prevent that applications attempt to change read-only array entry values.

Manuel Lemos
Picture of Thomas Björk
Name: Thomas Björk <contact>
Classes: 11 packages by
Country: Sweden Sweden
Age: 46
All time rank: 1671 in Sweden Sweden
Week rank: 148 Up2 in Sweden Sweden Down
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Files folder imageexamples (5 files)
Files folder imageextends (1 file)
Plain text file fusearray.php Class Main file with class
Accessible without login Plain text file LICENSE Data New license file
Accessible without login Plain text file Data Changed format of the readme from readme.txt to

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file exampleConfig.ini Data Example ini-file used by the example
  Accessible without login Plain text file exampleConfig.php Example Example to read ini-file to use as an config
  Accessible without login Plain text file exampleConvert.php Example Example on how to load data statically
  Accessible without login Plain text file exampleFail.php Example Example on how not to use the class
  Accessible without login Plain text file exampleImport.php Example Example on how to load data dynamically

  Files folder image Files  /  extends  
File Role Description
  Plain text file configarray.php Class En extend that reads and parses ini-files

 Version Control Reuses Unique User Downloads Download Rankings  
 100%1Total:237All time:7,159
 This week:0This week:1,334Up
 User Ratings  
 All time