Re: Stripping newline chars?

From: Date: Mon, 20 Nov 2000 17:45:35 +0000
Subject: Re: Stripping newline chars?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-26299@lists.php.net to get a copy of this message
Lauri Vain wrote: > > Hello, > I have a problem and I can't seem to get it fixed :-( > My database looks like this: > db_items_id | db_price | db_desc > > Now, the price has lots of newline chars at the *end* which aren't supposed to > be there any more, I need to strip them. The number of them varies. > ... > 'PHP Manual' -> 'LX. String functions' -> 'trim()': -------------------------------------------------- string trim (string str) This function strips whitespace from the start and the end of a string and returns the stripped string. The whitespace characters it currently strips are: "\n", "\r", "\t", "\v", "\0", and a plain space. -------------------------------------------------- RTFM :) -- Pavel a.k.a. Papi

« previous php.general (#26299) next »