Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //removes, tabs, double spaces, white lines
- $content = preg_replace("/[\r\n]+[\s\t]*[\r\n]+/","\n",$content); //strip blank lines (blank, with tab or whitespaces)
- $content = str_replace("\r\n", " ", $content); //removes line-breaks Windowzzzzzzzzzz
- $content = str_replace("\n", " ", $content);//removes line-breaks other
- $content = str_replace("\t", " ", $content); //removes tabs
- $content = eregi_replace(" +", " ", $content); //removes spaces
- $content = trim($content);
Add Comment
Please, Sign In to add comment