foreach($file as $value ){

  print "$value<br>";
}


> // This will print first and sixth line from the text file:
> $file = file("people.txt");
>  print "$file[0]<br>";
>  print "$file[6]<br>";
>
> // But how to print all the lines from [0] to [6] ?
> // Hope you understood my problem.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to