PHP Grab last 15 lines in txt file

Menсcaby

New Member
Thank you for taking the time to read this and I will appreciate every single response no mater the quality of content. :)Using PHP, I'm trying to get the last 15 lines of a text document (.txt) and store that data into a php variable. I understand that this is possible, however when I do get the last 15 lines, is it possible to retain the order? For example:text document:\[code\]ABC\[/code\]When I grab the text document from the last 15 characters, I don't want the echo to end up like:\[code\]CBA\[/code\]All assistance is appreciated and I look forward to your replies; thank you. :) If I didn't explain anything clearly and/or you'd like me to explain in more detail, please reply. :)Thank you.
 
Back
Top