> >For this example I would have suggested:
> >
> > > $str = "PhiladelphiaFirstadate05Oct2004";
> >
> > $str = trim( $str, "t" );
> >
> > print( $str ); // outputs "PhiladelphiaFirstadate05Oct2004"
> >?>
> >
> >Cheers,
> > Rick
> >
>
> t is not static character. My example
> > > Below is string let's name it A.
> > >
> ttPhiladelphiaFirstadate05Oct2004ttt
> > > ttt
> > >
> > > I want to get string B. That looks like
> > > PhiladelphiaFirstadate05Oct2004
> > >
> > > No characters before Philadelphia and after 20004
> >
> >Is the charac
No. It just an example
From: "Torsten Roehr" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Remove cahracters in string
Date: Mon, 10 May 2004 22:49:27 +0200
"Mike Mapsnac" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
&
te05Oct2004
>
> No characters before Philadelphia and after 20004
Is the character you want to remove ('t') always the same?
Torsten
>
>
>
>
> >From: "Torsten Roehr" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: [PHP] Re: Remove cah
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Remove cahracters in string
Date: Mon, 10 May 2004 22:37:36 +0200
"Mike Mapsnac" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I search on php.net and couldn't find the function. I need a function
that
> will remov
"Mike Mapsnac" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I search on php.net and couldn't find the function. I need a function that
> will remove characters in the string until it reached the pattern and
> remove characters in the string after another pattern.
>
> The program r
6 matches
Mail list logo