I have a block of HTML that includes an unordered list of items, followed by a paragraph of text. HTML structure looks something like this:
<ul>
<li>...</li>
</ul>
<p>...</p>
I need to split this block into separate vars. I was thinking of using explode but not sure if it's the best option.
$hpcs = explode("<\/ul>", $html);
$hlst = $hpcs[0];
$hsum = $hpcs[1];