Removing White Space
Filed under: Snippets — John @ 1:14 pm March 24, 2005
Quick Snippet to remove all the white space from a string.
< ?php
$string = "mary had a monkey called Booboo ";
$text = preg_replace("/(\s)/", "", $string);
?>
Filed under: Snippets — John @ 1:14 pm March 24, 2005
Quick Snippet to remove all the white space from a string.
< ?php
$string = "mary had a monkey called Booboo ";
$text = preg_replace("/(\s)/", "", $string);
?>
No comments yet.
RSS feed for comments on this post.
You must be logged in to post a comment.
Trademarks and Registered Names are copyright of there respected owners
© whoooop.co.uk 2007