Re: [PHP-WIN] Something like trim()

2003-02-01 Thread Cam Dunstan
February 01, 2003 9:50 PM Subject: RE: [PHP-WIN] Something like trim() > Or just > > $cleanstring = ereg_replace("[ \t\n]+"," ",trim($dirtystring)); > > Jill > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] Something like trim()

2003-02-01 Thread Cam Dunstan
t" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 01, 2003 1:58 AM Subject: Re: [PHP-WIN] Something like trim() > is there no more complicated solution for this? ;-) > > nothing for bad! > > B.A.T. Svensson wrote: > > Something like (

RE: [PHP-WIN] Something like trim()

2003-02-01 Thread Jill . Ramonsky
Or just $cleanstring = ereg_replace("[ \t\n]+"," ",trim($dirtystring)); Jill -Original Message- From: Cam Dunstan [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 01, 2003 2:24 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Something like trim() Cybot, try

[PHP-WIN] Something like trim()

2003-01-31 Thread Cam Dunstan
t" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 01, 2003 1:58 AM Subject: Re: [PHP-WIN] Something like trim() > is there no more complicated solution for this? ;-) > > nothing for bad! > > B.A.T. Svensson wrote: > > Something like (

Re: [PHP-WIN] Something like trim()

2003-01-31 Thread cybot
ace left. After that it falls into loop 1 again and check if we reach the end of the string or not, if not, we do all the things once again. -Original Message- From: Bobo Wieland [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 8:26 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN]

Re: [PHP-WIN] Something like trim()

2003-01-30 Thread Cam Dunstan
check out str_replace()- you`ll find it in the "string functions" section of the manual. - Original Message - From: "Bobo Wieland" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 30, 2003 6:26 PM Subject: [PHP-WIN] Something like

Re: [PHP-WIN] Something like trim()

2003-01-30 Thread Bobo Wieland
I'll answering it myself so that no one else has to bother; $str = ereg_replace("[[:space:]]+", " ", trim($str)); . bobo - Original Message - From: "Bobo Wieland" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 30, 2003

RE: [PHP-WIN] Something like trim()

2003-01-30 Thread Svensson, B.A.T. (HKG)
or not, if not, we do all the things once again. > -Original Message- > From: Bobo Wieland [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 8:26 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Something like trim() > > > Is there an easy way to get rid

[PHP-WIN] Something like trim()

2003-01-29 Thread Bobo Wieland
Is there an easy way to get rid off white space characters in a string? Like trim() but for the whole string and leaving single white spaces as they are but removing all occurences of '\t','\n' and ' '(leaving a single ' ')... I've tried the manual but couldn't find anything... . bobo . www