Login   Register  
PHP Classes
elePHPant
Icontem

Multi-Dimensional Array Handler: Access multi-dimensional arrays with a single key

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 (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (4)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-02-09 (6 years ago) RSS 2.0 feedStarStarStar 40%Total: 1,106 All time: 3,147 This week: 1,524Up
Version License PHP version Categories  
marray 1.0GNU General Public Lice...5PHP 5, Data types
Description Author  

This class can be used to access multi-dimensional array entries with a single string entry key.

It allows to reference elements of an array an arbitrary depth using a single string that represents the element array indexes separated with commas.

The class can take an element index string and set or get its value, check if the element is set, or check it is empty or return the count of entries if the element is an array.

Innovation Award  
PHP Programming Innovation award nominee
February 2008
Number 8


Prize: One copy of Delphi for PHP
Multi-dimensional arrays present a challenge to developers that need to reference elements of the arrays, which is the fact that you need a variable number of indexes to reference an element depending on its depth.

This class provide a solution to this problem by allowing to reference and manipulate an element by using a single string that comprises all the indexes of the element.

Manuel Lemos
Picture of Colin Jermain
Name: Colin Jermain <contact>
Classes: 1 package by
Country: United States United States
Age: ???
All time rank: 2029257 in United States United States
Week rank: 1555 Up178 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file obj.marray.php Class marray Uncompressed Object
Plain text file obj.marray.compressed.php Class marray Compressed Object
Accessible without login HTML file Documentation Doc. The object and function documentation.
Accessible without login Plain text file func.marray.compressed.php Aux. Alternative Compressed Functions
Accessible without login Plain text file func.marray.php Aux. Alternative Uncompressed Functions
Accessible without login Plain text file License Lic. Package License

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,106All time:3,147
 This week:0This week:1,524Up
User Ratings User Comments (1)  
 All time
Utility:50%StarStarStar
Consistency:75%StarStarStarStar
Documentation:83%StarStarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:40%StarStarStar
Rank:2127
 
eval? Not really, huh?
6 years ago (Martin)
15%Star