Hello All,
Currently, I'm trying to parse some information from another website using file_get_contents. After I have the source code I go through and parse out some information that I need. This information is then going to be put into a database. However, i'm having some trouble manipulating the last bit on information. Here is an example of how the information I need is being displayed:
http://conntext.us/testing.php
I would like to have the line breaks removed from this string of test. I have tried to use various methods of str_replace, preg_replace etc, but none have seemed to do what I want.
When completed I would also like to add <br /> to the end of each line, (which i should be able to do) so that the plaintext output to be like this:
Any help is greatly appreciated! Thanks!
Currently, I'm trying to parse some information from another website using file_get_contents. After I have the source code I go through and parse out some information that I need. This information is then going to be put into a database. However, i'm having some trouble manipulating the last bit on information. Here is an example of how the information I need is being displayed:
http://conntext.us/testing.php
I would like to have the line breaks removed from this string of test. I have tried to use various methods of str_replace, preg_replace etc, but none have seemed to do what I want.
When completed I would also like to add <br /> to the end of each line, (which i should be able to do) so that the plaintext output to be like this:
Deli<br />
Lemon Tarragon Tuna Salad on Bagel<br />
Made to Order Deli Core<br />
Dessert<br />
Apple Crisp<br />
Any help is greatly appreciated! Thanks!