Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- preg match all value between two tags and loop


NomikOS - 3:29 pm on Dec 4, 2009 (gmt 0)


# to isolate each data cell use PREG_SET_ORDER flag: 

if (preg_match_all("/<td class=\"data2\">(.*?)<\/td><td class=\"data2\">(.*?)<\/td><td class=\"data2\">(.*?)<\/td>/si", $content, $aux, PREG_SET_ORDER))
{
foreach ($aux as $aux2)
{
$store['1st Information'][] = $aux2[1];
$store['2st Information'][] = $aux2[2];
$store['3st Information'][] = $aux2[3];
}
}


Thread source:: http://www.webmasterworld.com/php/4036955.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com