You are here: Re: $alines = preg_split("/=/", $lines); « PHP Programming Language « IT news, forums, messages
Re: $alines = preg_split("/=/", $lines);

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация