RE: [PHP] Help and advice sought - search/replace

2002-06-27 Thread Jason Soza
; fwrite($fp, $new_name.chr(13).chr(10)); } fclose($filename); ? Thanks again, J -Original Message- From: Niklas Lampén [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 10:06 PM To: Php-General Subject: RE: [PHP] Help and advice sought - search/replace If your

RE: [PHP] Help and advice sought - search/replace

2002-06-26 Thread Niklas Lampén
If your list looks like this: Salo, Mika Räikkönen, Kimi Häkkinen, Mika And there is no other commas in the list, you can do it something like this: ? $commaSeparatedList = join(\n, file(NAMES.txt)); $tabSeparatedList = preg_replace(, , \t, $commaSeparatedList); $arrayOfTabSepList =