Fast and dirty:

function readnlines($filename, $count)
  return array_slice(file($filename), 0, $count);


"Tauntz" <[EMAIL PROTECTED]> wrote in message
hi !

I have a simmple question :)..

Lets say that I have a file called:
and I want to take the first 10 lines from it & echo it to the browser ?

thank you

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