PHPFront

Home > PHP > Strip blank lines
The PHP website created by its users!



Strip blank lines


Author
DescriptionStrip blank lines or tab spaces from a string
RatingThis script has been rated 4/5 (6 votes)

PHP Code


<?php
$text
=preg_replace("/[rn]+[st]*[rn]+/","n",$text);
?>



Rate it: Print Print

Comments


No comments posted yet.

Name
Website
Your comment