|
Posted by Brent Baisley on 10/20/21 11:16
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
Navigation:
[Reply to this message]
|