Submitted by richard on April 23, 2009 - 9:27am
How many of you have used the function stream_get_line() before?
How many of you know what it does?
How many of you know it works with resources opened by fopen()?
What does stream_get_line() do? "This function is nearly identical to fgets() except in that it allows end of line delimiters other than the standard \n, \r, and \r\n, and does not return the delimiter itself."
So if you want to pull a line out of a file like suggested at http://www.phpro.org/examples/Read-Line-From-File.html why use the obscure "stream_get_line()" function when fgets will work just as well and be instantly understandable by anyone reading?

