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


Strip blank lines


Author
DescriptionStrip blank lines or tab spaces from a string
RatingThis script has been rated 4/5 (9 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