Forums / Developer / Handling Multi-Dimernsional Arrays

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Handling Multi-Dimernsional Arrays

Author Message

James Ward

Wednesday 20 July 2005 8:16:07 am

How do I access the values inside a multi-dimensional array created with Exponential?

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

James Ward

Wednesday 20 July 2005 9:56:20 am

Your first example worked wonderfully. Thanks.

working at www.wardnet.com
blogging at www.jamesward.ca