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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

> <?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";
> }
> ?>




-- 
PHP General 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]

Reply via email to