Posted by Kailash Nadh on 11/26/07 03:07
Slightly unorthodox, but this works. <?php preg_match_all("/((<h2>(.+?)<\/h2>(.+?)<p>(.+?)<\/p>))/is", $html, $matches); print_r($matches); // array[3] would be headings and array[5] would be the related paragraph text ?>
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming