FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » replacing spaces with newline
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: replacing spaces with newline [message #181309 is a reply to message #181307] Sat, 04 May 2013 12:14 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On Sat, 04 May 2013 04:09:06 -0700, Simon Hall wrote:

> $file = Str_replace(" ", "\r\n", $file);

Last time I checked, it was str_replace, not Str_replace. You don't need
the \r on all operating systems. Some operating systems that I understand
may require the \r may also use 0xa0 instead of 0x20 for a space under
some circumstances.

--
Denis McMahon, denismfmcmahon(at)gmail(dot)com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: take two - fetch items from a row.
Next Topic: Unique array of arrays - how can I do this?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 09:24:18 GMT 2024

Total time taken to generate the page: 0.05861 seconds