PHP count number of lines in a string Posted 5th December 2016 by Admin & filed under PHP. $total_lines = count(explode(' ', $content)); or $total_lines = count(explode('\n', $content)); Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website
Leave a Reply