|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-08-02 09:21 UTC] parham_m_s at hotmail dot com
[2009-05-04 15:08 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 09:00:02 2025 UTC |
Would find it convenient to do this: $filehandle=fopen("file","r"); foreach ($filehandle as $line) { # process line (line ends stripped off) } fclose ($filehandle); ...and even this... $filehandle=fopen("file","r"); foreach ($filehandle as $line[]) { # $line[0] = whole line sans ends # $line[1] = first word (exploded out gawk-like) # $line[2] = second word, etc } fclose ($filehandle); ...just a thought.