You are here: Help with an Array... « PHP Programming Language « IT news, forums, messages
Help with an Array...

Posted by scole954387 on 04/23/06 04:31

Hi,

I need help with these arrays. I'm using a class (XMLParser.class.php)
to parse the results of a REST request sent to Amazon's server that
returned XML data.

Here's two arrays returned:

With No Errors: http://www.regalit.com/test.html
Without An Error: http://www.regalit.com/test2.html

Do anyone have any suggestions to reformat these arrays so that they
are more easy to read/understand?

I'm thinking of something like having it reformated something like:

ARRAY[ITEMSEARCHRESPONSE][OPERATIONREQUEST]
ARRAY[ITEMSEARCHRESPONSE][OPERATIONREQUEST][REQUESTID]


ARRAY[ITEMSEARCHRESPONSE][ITEMS]
ARRAY[ITEMSEARCHRESPONSE][ITEMS][ITEM]
ARRAY[ITEMSEARCHRESPONSE][ITEMS][ITEM][ASIN]

ARRAY[ITEMSEARCHRESPONSE][ITEMS][REQUEST][ISVALID]

ARRAY[ITEMSEARCHRESPONSE][ITEMS][REQUEST][ERRORS]


If anyone can help to reformat this array, it would be appreciated.
Keep in mind, I'm using PHP4 (don't have access to PHP5).

I'm open to getting a new class as well. I would need something open
source that would take the response and format it like the samples I
gave above. I would prefer not to have to install anything additional
like pear or similar.

Thanks,
S. Cole

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация