Fast and dirty:

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

//elias

"Tauntz" <[EMAIL PROTECTED]> wrote in message
003801c12fb2$685b90c0$0f00a8c0@tauntz">news:003801c12fb2$685b90c0$0f00a8c0@tauntz...
hi !

I have a simmple question :)..

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

thank you
[EMAIL PROTECTED]




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