new line
Posted: Tue Mar 13, 2007 3:07 pm
hi there i have made a script that will read information from a web page and store the information into a .txt file this is what i get in the .txt file
ihncmagi ctitcnuonec ohoi ronmtev baaerskn hulinasoratco miena norgeo ivigrnai lhkaaomo pienyanavnsl esolainhddr ieomnexwc aalsak diinaan soigwtnahn balmaaa ahiiaw asnniotem uasteacstmhss
what i have done is used str_replace() for the <br /> with " " so thats how i get the spaces but what i want to do is store it in the text file like :
rhsdenaidlo
enjysrwee
waaihi
etc
i thought the if i used str_replace() and changed the " " to "\n" then it would work but it just adds the words together please can someone help
thank you
ihncmagi ctitcnuonec ohoi ronmtev baaerskn hulinasoratco miena norgeo ivigrnai lhkaaomo pienyanavnsl esolainhddr ieomnexwc aalsak diinaan soigwtnahn balmaaa ahiiaw asnniotem uasteacstmhss
what i have done is used str_replace() for the <br /> with " " so thats how i get the spaces but what i want to do is store it in the text file like :
rhsdenaidlo
enjysrwee
waaihi
etc
i thought the if i used str_replace() and changed the " " to "\n" then it would work but it just adds the words together please can someone help
thank you