Re: Creating an array as a property of an object

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

 



On Fri, January 26, 2007 3:09 pm, Ken Kixmoeller -- reply to
ken@xxxxxxxxxxxxxx wrote:
> I want to have an multidimensional array as a property of an object.

While not relevant to your immediate question, you may want to be told
that PHP arrays are not truly multi-dimensional, but nested.

I.e., one cannot do:
$foo[0] = 'bar';
$foo[0][] = 'baz';

$foo[0] can hold a value, or another array, but not both.

This confuses some "converts" from other languages which store data
differently in a "true" multi-dimensional fashion.

YMMV
NAIAA

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
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