Forums / Developer / Handling Multi-Dimernsional Arrays
James Ward
Wednesday 20 July 2005 8:16:07 am
How do I access the values inside a multi-dimensional array created with ezpublish?
Given an array created with the following:
{let pidarray=array(array("pid123","New Widget"),array("pid122","Old Widget"))}
If I do an attribute(show) on this I can see all my data but I have no idea how to access it. I assume something like:
$pidarray[0,1]
But that does not seem to work. If you could point me to the doc page with this info that would be most helpful.
working at www.wardnet.com blogging at www.jamesward.ca
David Eriksson
Wednesday 20 July 2005 8:21:53 am
$pidarray[0][1], I believe.
Or $pidarray.0.1, to use the other notation.
/David
Wednesday 20 July 2005 9:56:20 am
Your first example worked wonderfully. Thanks.