Scrape sibling tags and associate as a parent-child relationship – PHP
I want to extract content from two different tags using PHP. I want to associate h2 tags with the div tags' content that immediately follows them -- like a parent-child relationship. <h1>Title 1</h1> <div class="items">some data and divs here 1</div>…