Re: parse text file
| From: | Joe Wollard | Date: | Sun, 23 Jul 2006 19:58:11 +0000 |
| Subject: | Re: parse text file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-239711@lists.php.net to get a copy of this message | ||
Benjamin,
Use the file() function, it will read a file then return each line as
a new element in an array.
http://php.net/file
- Joe
On 7/23/06, Benjamin Adams <badams@ambrosiasw.com> wrote:
how would I read a file one line at a time: <?php if($lines < $alllines){$newline .= $lines;} ?> something like that, I'm cofused on if I use fread, something which will do one line at a time? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php