-entropyman Posted July 17, 2008 Share Posted July 17, 2008 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 More sharing options...
trq Posted July 17, 2008 Share Posted July 17, 2008 You could try starting with explode but its probably best to use preg_split with a regex that matches your delimiters which unfortunately we can't see because you need to use tags when posting any code on the board. Link to comment https://forums.phpfreaks.com/topic/115153-divding-a-string/#findComment-592153 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.