This post is about the different type of white space characters that you should expect when programming.
There are different ways of representing white space characters depending on a few factors. However, here is a quick list of the variations:
If you want to remove those whitespace characters put the above characters into an array and do a simple str_replace() substitution like so:
<?php
$some_string = str_replace($whitespace_array, ”, $some_string);
?>
Discuss this article in the PHP Forum.
Leave a reply
You must be logged in to post a comment.