I am new to php, so please forgive the simple question:
How to extract text from an element?
<span id="myElement">Some text I want to read</span>
I have this for starters:
<?php $data = $dom->getElementById("myElement"); $html = $dom->saveHTML($data);
But then? What is the correct instruction?
source share