Re: File open Question?
| From: | David Serrano | Date: | Mon, 16 Apr 2001 23:35:06 +0000 |
| Subject: | Re: File open Question? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48836@lists.php.net to get a copy of this message | ||
Ok, I think I get it, though I have one more question to access a specific
line of that array would it just be as simple as $array[2]?
-David Serrano
"Brian Clark" <brianj@fusionwerks.com> wrote in message
news:614946098.20010416192600@fusionwerks.com...
> <?php
> if(! $array = @file('/usr/local/src/fdiff.c'))
> die("can't read diff.c");
>
> while(list($i,$line) = each($array))
> {
> print "$i: $line\n";
> }
> ?>