You are here: Re: Creating an array from an HTML table « PHP Programming Language « IT news, forums, messages
Re: Creating an array from an HTML table

Posted by Rik on 07/20/07 03:29

On Fri, 20 Jul 2007 04:01:07 +0200, axlq <axlq@spamcop.net> wrote:

> Before I try to do this myself (I remember doing it in Java years ago
> and it was a pain)....
>
> Has anyone run across a function that will take a string parameter
> containing an HTML table, and return a 2-dimensional array with each
> element corresponding to the contents of a table cell?
>
> I see plenty of examples of doing the opposite: convert an array to
> an HTML table. I want to go the other way, from an HTML table to an
> array.

Regex could be the way to go. Before I start an elborate pattern: any
ideas how you'd like to treat col-/rowspans?
--
Rik Wasmus

 

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

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