To remove multiple occurences of whitespace characters in a string to convert them all into single spaces, use this:
$text = preg_replace('/\s+/', ' ', $text);
?>
This wiki-webreference blog provides scripts, tips and various best reference site URLs and links to get tutorials and scripts for IT developers (DHTML, JavaScript, Ajax, Xajax, PHP and MySql and etc) and other valuable information. And also this blog provides guidelines to Facebook application developers to develop Facebook application in PHP.
No comments:
Post a Comment