using file_get_contents
, I open an Internet URL and get the contents of this webpage.
Inside the HTML there are many identical span class tags:
<span class="always-the-same-class">always dynamic text</span>
Now, I want to get an array containing all the "dynamic text" contained in any of this tags. It is not necessary to eliminate duplicated entries (I need them).
Is this possible? How could I do?