In this tutorial I will show you how to work with arrays in PHP. You will learn how to create, sort or print an array. Besides this we will touch on multidimensional arrays as well.
Step 1 – Introduction to arrays
Arrays are special data types. Despite of other normal variables an array can store more than [...]
Posts Tagged 'Array'
PHP array tutorial
Better Array Storage
Better Array Storage
By : Bogdan Zarchievici
This is a simple class that can serialize and unserialize arrays in compressed data.
The class uses the var_export function to create a serialized version of the array that is compressed with zlib library functions.
To unserialize the class decompresses the serialized array and uses the PHP eval function to restore the [...]
Array Storage
Array Storage
By : Snt
The class just converts array data into PHP code that would rebuild the array when run. Then it can compress the generated code so it can take less space to store for instance in a database BLOB field.
download :
http://www.ziddu.com/download/7365884/array_storage-2005-02-16.zip.html
Generic Array
Generic Array
By : Martin Alterisio
This class can be used to create arrays that allow members of just one type.
It implements a class loader that gives a special treatment to the creation of objects of classes with the names that start with ArrayOf.
The class assumes that it is intended to create an object of [...]
Dump To Array
Dump To Array
By : Matthew Osborne
This class can be used to generate PHP code that represents an array value.
It takes an array parameter and traverses it recursively to generate a string of PHP code that can be used in PHP scripts to initialize the array with the same value structure.
Download :
http://www.ziddu.com/download/7338101/dumptoarray-2009-08-15.zip.html
