Tim Bond
Seattle PHP Meetup - July 11, 2017
Often a combination of two or more
<body>
<div>Irrelevant data</div>
<!-- Details -->
<div>Important data</div>
<!-- Details End -->
</body>
$html = explode('<!-- Details -->', $html)[1];
$html = explode('<!-- Details End -->', $html)[0];
<div>
<ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
</ul>
</div>
$xml = simplexml_load_string($string);
foreach($xml->ul->li as $li) {
echo "$li\n";
}
Packet Capture
for Android