Re: PHP Complex Data Structures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I find PHP arrays easier than Perl's data structures. Probably because PHP just has arrays, there really is no differentiation between arrays (Perl @) and hashes (Perl %). And PHP references arrays the same way as variables ($), which may or may not be confusing. You could probably look at PHP arrays as Perl hashes (name/value pairs). The functions are just about the same: push, pop, shift, unshift, etc.

If you think of all PHP arrays as Perl hashes, you should grasp things pretty quick.

On May 17, 2005, at 4:17 PM, zzapper wrote:

Hi,
I seem to remember that you access/use PHP data in the same/similar way to Perl data and that you
can create complex data structures ie
arrays of arrays, arrays of records etc.


For once Google let me down so can any one point at any doc info.


--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux