Re: Parsing a file line by line

From: Date: Wed, 26 Nov 2003 02:33:50 +0000
Subject: Re: Parsing a file line by line
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-170975@lists.php.net to get a copy of this message
On Tue, 25 Nov 2003 17:44:09 -0800 "Jason Williard" <jason@janix.net> wrote: ...[snipped]... > Does anyone have any ideas for me? Okay, this is just an idea. Use file() to put everything in an array. http://www.php.net/manual/en/function.file.php Then find a function here that would let you check the first four characters. http://www.php.net/manual/en/ref.strings.php Loop through the array created by file() and process each line accordingly (whatever it is that you need to do with each line). - E - __________________________________________________ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/

« previous php.general (#170975) next »