How can I get everything from $string after "<div class='partFive'>"?
Thanks!
How can I get everything from $string after "<div class='partFive'>"?
Thanks!
Do you need everything after or everything in that DOM element?
I'm assuming you mean you want to grab everything in that DOM element, and the easiest way would be to grab it by using Zend_Dom.
http://framework.zend.com/manual/en/zend.dom.query.html
$dom = new Zend_Dom_Query($html); $results = $dom->query('div.partFive');
foreach ($results as $result) { // $result is a DOMElement }
You could just remove the part you don't want, like so:
$myString = str_replace("<div class='partFive'>","",$string);