in reply to variant array

$bbData->[0][0][0][0] should return 'MMM     US'. Based on your dumper output, your array is four levels deep so you need to have four indices, not 3 or 2.

Best, beth

Replies are listed 'Best First'.
Re^2: variant array
by kevind0718 (Scribe) on Jul 01, 2009 at 18:58 UTC
    Yes we just hacked a bit of code that got us to that.

    But it is ugly. maybe you could provide a loop that get the strings.

    many many thanks

    KD
      Getting you started is pretty much where I stop. This isn't a code writing service. Make an attempt to write the loop yourself and if you have problems getting it right, you are more than welcome to post a question with your code.

      Next time though, please

      • Put <readmore>...</readmore> tags around long code samples and output
      • Better yet, give a short sample rather than your entire data set. You can leave out the middle bits and just show the start and end of the data dumper if you have another long array like the one you displayed.
      • Explain and give samples of what you want to happen; not just what did happen. I had to spend a lot of time reading your code just to figure out which string in which array was interesting to you.

      Best, beth

        You are of course correct. And I stand corrected.

        Will post what worked and ask for suggestions.

        thanks

        KD