AV1611 Posted October 16, 2008 Share Posted October 16, 2008 How would I open a text file and simple count the number of lines in it? I don't care about the content in the line or if there is a blank line. I need to just count the number of line returns in the file. Link to comment https://forums.phpfreaks.com/topic/128753-solved-count-lines/ Share on other sites More sharing options...
wildteen88 Posted October 16, 2008 Share Posted October 16, 2008 Use file() then count() Link to comment https://forums.phpfreaks.com/topic/128753-solved-count-lines/#findComment-667316 Share on other sites More sharing options...
AV1611 Posted October 16, 2008 Author Share Posted October 16, 2008 Perfect... thanks... Link to comment https://forums.phpfreaks.com/topic/128753-solved-count-lines/#findComment-667325 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.