Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #9254

Re: replacing spaces with newline

From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.php
Subject Re: replacing spaces with newline
Date 2013-05-04 12:14 +0000
Organization A noiseless patient Spider
Message-ID <km2u2l$ole$1@dont-email.me> (permalink)
References <6964ae80-5d55-44bf-984e-9277b42fc67d@googlegroups.com>

Show all headers | View raw


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@gmail.com

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

replacing spaces with newline Simon Hall <hall.simon82@gmail.com> - 2013-05-04 04:09 -0700
  Re: replacing spaces with newline Denis McMahon <denismfmcmahon@gmail.com> - 2013-05-04 12:14 +0000
  Re: replacing spaces with newline bill <william@TechServSys.com> - 2013-05-04 08:20 -0400
  Re: replacing spaces with newline Jeff North <jnorthau@yahoo.com.au> - 2013-05-04 22:24 +1000
  Re: replacing spaces with newline Simon Hall <hall.simon82@gmail.com> - 2013-05-04 07:43 -0700

csiph-web