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. Quote 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() Quote 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... Quote Link to comment https://forums.phpfreaks.com/topic/128753-solved-count-lines/#findComment-667325 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.