[PHP] Re: Remove cahracters in string

2004-05-10 Thread Torsten Roehr
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 reads

RE: [PHP] Re: Remove cahracters in string

2004-05-10 Thread Mike Mapsnac
: [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 remove characters in the string until it reached the pattern

Re: [PHP] Re: Remove cahracters in string

2004-05-10 Thread Torsten Roehr
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 cahracters in string Date: Mon, 10 May 2004 22:37:36 +0200 Mike Mapsnac [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] Re: Remove cahracters in string

2004-05-10 Thread Mike Mapsnac
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] Below is string let's name

RE: [PHP] Re: Remove cahracters in string

2004-05-10 Thread Rick Fletcher
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 character you want to remove ('t')

RE: [PHP] Re: Remove cahracters in string

2004-05-10 Thread Rick Fletcher
For this example I would have suggested: ?php $str = PhiladelphiaFirstadate05Oct2004; $str = trim( $str, t ); print( $str ); // outputs PhiladelphiaFirstadate05Oct2004 ? Cheers, Rick t is not static character. My example isn't correct Correct