 |
|
Innovation award
 Nominee: 2x |
This class can manage arrays with keys of any type.
It provides interfaces to access arrays with regular PHP array functions but internally it stores array keys and entry values in separate arrays, so it avoids PHP automatic casting of array keys to integer or string values.
The class can find entries with given key values by searching the internal keys array, so entries with keys of different types represent different array entries.
|
|
| Name: |
Simple Array |
| Base name: |
simple-array |
| Description: |
Manage arrays with keys of any type |
| Version: |
1.0.0 |
| PHP version: |
5.3 |
| License: |
GNU General Public License (GPL) |
| All time users: |
473 users |
| All time rank: |
5070 |
| Week users: |
0 users |
| Week rank: |
2197  |
| |
|
 January 2012
Number 3
Prize: One copy of the Zend Studio |
In PHP arrays may have keys of either integer or string types. If you use values of other types as keys, PHP will cast the type of key values.
This class provides a workaround to this limitation by implementing an array interface that internally uses a separate array for keys and another for values, so keys can be of any type.
Manuel Lemos |
| Not yet rated by the users |
| |
Applications that use this class |
|
|
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| |
Files |
|
|