| 
	
 | 
 Posted by macbri on 08/29/05 06:02 
voipcanada Wrote:  
> Dear Macbri 
>  
> it does work good but not when we want a file like this to be edited 
> ,,,, please look at the file and if you can suggest some thing 
> http://starkom.com/bill20050820_000000 .. thanks and regards 
Why not split each line with preg_split() and then use the 
preg_replace() as described....? 
 
 
Code: 
-------------------- 
    foreach ($lines as $each) { 
  $line = preg_split("/,/", $each); 
  $line = preg_replace ... (etc.) 
  } 
-------------------- 
 
 
--  
macbri 
------------------------------------------------------------------------ 
macbri's Profile: http://www.macosx.com/forums/member.php?userid=34415 
View this thread: http://www.macosx.com/forums/showthread.php?t=242019 
macosx.com - The Answer to Mac Support - http://www.macosx.com
 
  
Navigation:
[Reply to this message] 
 |