![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: Removing quotes from an array, string or txt file see code
From: Joe Estock <jestock@NOSPAMnutextonline.com>
Date: Sun Oct 30 2005 - 16:01:07 CET
Techie Guy wrote:
Simple.
>
This is a rather barbaric way to read in a file. What happens if the
$fp = fopen('download.txt', 'r');
while(!feof($fp))
fclose($fp);
>
Before you split the line using explode, simply do:
$line = explode("\t", str_replace('"', '', $addresses[$i]));
> $line = explode("\t",$addresses[$i]);
TIA? IMHO this is bad netiquette - if you can't be bothered to take the
Cheers,
Joe
|