Return to Snippet

Revision: 20499
at November 17, 2009 10:03 by annalog


Initial Code
<?php
$str = preg_replace('/\s\s /', ' ', $str);
?>

Initial URL
http://agaric.com/note/get-rid-extra-spaces-using-phps-preg-replace

Initial Description

                                

Initial Title
Get rid of extra spaces using PHP's preg_replace

Initial Tags

                                

Initial Language
PHP