Re: dropping one word from column entries
| From: | Stuart Dallas | Date: | Wed, 29 May 2002 16:18:11 +0000 |
| Subject: | Re: dropping one word from column entries | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-19495@lists.php.net to get a copy of this message | ||
Ed Gorski <gorskie@spjc.edu> wrote:
> use:
>
> $name="Mouse Housing Products";
> $name=str_replace("Products","",$name);
>
> also the RTFM() function works too
I'd also trim it to get rid of any extra spaces that are left:
$name = trim(str_replace("Products","",$name));
--
Stuart