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:

foreach ($filehandle as $line) {
    # process line (line ends stripped off)
fclose ($filehandle);

...and even this...

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:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to