September 5, 201412 yr I'm looking for$startpos = strpos($page, '<div id="yada yada"') + 7;I want to set $endpos to the position of the closing div, "</div>". If I do that, it will read the first closing div and not the one that I want. How do I find the next /div after the start one I found?
Create an account or sign in to comment