Get to a whole bunch of HTML data, about 30,000 characters in size. But the front is useless, only the back thousands of characters are useful, want to extract data from the inside. If you waste a lot of resources directly with regular processing, there is no way to start the regular from the last side of the string and then take it somewhere and stop.
Just started to try to use the Simple_html_dom class to deal with, but later stuck ...
Because each time you go to the thing is not necessarily length, so direct interception of a fixed number of length of characters this method is not very good.
Reply to discussion (solution)
Since you're not exactly where you need to start, there's no problem with wasting resources.
Get HTML
File_get_contents
Curl
Regular parsing of HTML, you can get the text you want.
There is no good way, because you want to filter the data, either the regular match, or use the class you use.