You are here: Re: Help outputting an array? « PHP « IT news, forums, messages
Re: Help outputting an array?

Posted by Aidan Lister on 10/18/42 11:14

Hi Brian,

Try this function,
http://aidan.dotgeek.org/lib/?file=function.array2table.php


"Brian Dunning" <brian@briandunning.com> wrote in message
news:CED5644A-3E06-45E9-A6B2-11E7E2C57971@briandunning.com...
> Hi all - it seems the longer I use PHP, the stupider my questions are
> getting. I finally got my XML parsed into an array, but perhaps my skills
> at dealing with the array are not where I thought they were. My array
> print_r's out like this:
>
> Array
> (
> [PARAS] => Array
> (
> [PARA] => Array
> (
> [__multi] => 1
> [0] => Array
> (
> [NOTE] => Here is my first note.
> [TITLE] => Here is my first title.
> )
> [1] => Array
> (
> [NOTE] => Here is my second note.
> [TITLE] => Here is my second title.
> )
> )
> )
> )
>
> I just want to loop through the array and output it as a table. It would
> look something like this:
>
> <td>Here is my first note.</td><td>Here is my first title.</td>
> <td>Here is my second note.</td><td>Here is my second title.</td>
>
> What incredibly easy way to do this am I just missing? Thanks! :)

 

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

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