From: [EMAIL PROTECTED]
Operating system: (all, using) Linux 2.2.18
PHP version: 4.0.4pl1
PHP Bug Type: Feature/Change Request
Bug description: New feature for foreach control structure
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.
--
Edit Bug report at: http://bugs.php.net/?id=9441&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]