hiya, i have an old webpage here, 20+ pages full of tables with products, description and prices. i have to write this values into a database for a redesign of this site. can anyone think of a way to parse a whole page into an array? it would be much easier to look for the table inside an array insteaf of messing arround with strlen() and str_pos() to read this table. the array should look like this so that i can access each section of the page: $site = array("html_0"=>array("body_0"=>array("h1_0"=>"heading 1 here", "p_0"=>"first paragraph", "p_1"=>"second paragraph", "table_0"=>array("tr_0"=>array("td_0"=>"item name", "td_1"=>"description", "td_2"=>"price",) ) ), ) ); echo "<pre>"; print_r($site); echo "</pre>"; PHP: anyone who can help?
search google for preg_match_all very useful function http://www.google.com/search?q=php+preg_match_all