I don’t know if you are able to do this, but…
Is there anyway to get a part of the content from a URL ?
Like if I have this:
<protected>false</protected>
<followers_count>6</followers_count>
<profile_background_color>00afe0</profile_background_color>
(The whole content is from Twitter)
But only want the <followers_count>6</followers_count> part?
Somebody who know how to do this?
(I hope you guys know what I mean by this)
PS. Anything above is JUST an example
PSS. Not just gona use this for xml, etc this format too (Which I don’t know the name of)
Yes, I know that I could just use the file_get_contents-offset and maxlen thing, but the problem is, that I don’t always know, where the part I’m looking for is.
You could use a native XML parser such as SimpleXML to find the value of a specific piece of content.