PHP – Returning the last line in a file?
I’m guessing it’s fgets, but I can’t find the specific syntax. I’m trying to read out (in a string I’m thinking is easier) the last line added to a log file.
I’m guessing it’s fgets, but I can’t find the specific syntax. I’m trying to read out (in a string I’m thinking is easier) the last line added to a log file.