Re: [PHP] gobbling replace

2002-05-10 Thread Analysis & Solutions
Hey Josh: On Fri, May 10, 2002 at 08:19:59AM -0400, Josh & Valerie McCormack wrote: > Thanks Dan. It's really close now. But it's duplicating the text string > at the beginning and end of the replaces. > ... snip ... >10 123 123 Shawn Adams 456 456 No, you mean to say that you're replacing

Re: [PHP] gobbling replace

2002-05-10 Thread Josh & Valerie McCormack
456 456 7 8 123 123 Peter Lem 456 456 9 10 123 123 Shawn Adams 456 456 And here's the rewritten code: 1 by the way, were you saying I don't need the fcloses? Thanks! Josh >> Subject: >> >> Re: [PHP] gobbling replace >> F

Re: [PHP] gobbling replace

2002-05-09 Thread Analysis & Solutions
On Thu, May 09, 2002 at 11:39:34PM -0400, Analysis & Solutions wrote: > On Thu, May 09, 2002 at 03:17:09PM -0400, Josh & Valerie McCormack wrote: > > > 6 123 123 123 123 123 123 John Smith 456 456 456 456 4 > > The odd replacement is due to the itterations for each record in the csv file Pa

Re: [PHP] gobbling replace

2002-05-09 Thread Analysis & Solutions
On Thu, May 09, 2002 at 03:17:09PM -0400, Josh & Valerie McCormack wrote: > I'm doing a str_replace (same thing happens with ereg and preg) and when > the pattern is found it's erasing everything after it and doing a > strange replace, too. > > I'm using a seven column CSV (new_data.csv) where

[PHP] gobbling replace

2002-05-09 Thread Josh & Valerie McCormack
I'm doing a str_replace (same thing happens with ereg and preg) and when the pattern is found it's erasing everything after it and doing a strange replace, too. I'm using a seven column CSV (new_data.csv) where the first [0] column is first name and the second [1] is last name. This is what I'