Jump to content

Divding a String


-entropyman

Recommended Posts

Hello again,

 

This time I would like to take a webpage, essentially just a large .txt file where there are separate entries divided by a <br>. 

 

Now I am using the file_get_contents method to open the page as a string.  Now I need help dividing that giant string, the entire file, down to each separate small strings, each one being the text beteewn <br>'s.  This way I'll be able to call only on entry line up.

 

Can anyone help point me in the right direction by showing me a function or helping me out? 

 

Thanks  :)

Link to comment
https://forums.phpfreaks.com/topic/115153-divding-a-string/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.