there are a number of
>substring-style things available, string position etc.
>
>HTH
>
>Beau
>
>// -Original Message-
>// From: Ed Gorski [mailto:[EMAIL PROTECTED]]
>// Sent: Thursday, 30 May 2002 12:09 AM
>// To: Jen Swofford; php-db@lists. php. net
>// Subjec
]]
// Sent: Thursday, 30 May 2002 12:09 AM
// To: Jen Swofford; php-db@lists. php. net
// Subject: Re: [PHP-DB] dropping one word from column entries
//
//
// use:
//
// $name="Mouse Housing Products";
// $name=str_replace("Products","",$name);
//
// also the RTFM(
Ed Gorski <[EMAIL PROTECTED]> 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
--
PHP
use:
$name="Mouse Housing Products";
$name=str_replace("Products","",$name);
also the RTFM() function works too
ed
At 11:06 AM 5/29/2002 -0500, Jen Swofford wrote:
>I'm having a problem with this and suppose I'm looking for a handout. :|
>
>I am displaying names of product categories. The na