See this simple example:
Code:
<?php
$data0 = "Sadly, PHP is an interpreted slow language, is the tool of freelancers, not corporates.";
// whitespaces of 2, 2, 2, 3, 2, 2, 4, 2, 2, 2, 2, 5, 2
$data1 = preg_replace('/\s\s+/', '', $data0); // remove all whitespace patterns
$data2 = preg_replace('/\s\s+/', ' ', $data0); // replace all whitespace patterns with only one space
echo "<br>data0: " . $data0 . "<br>";
echo "<br>data1: " . $data1 . "<br>";
echo "<br>data2: " . $data2 . "<br>";
?>
`~@#\^%&*/\.<.\/-|+|_!:;..=?>
Support Indian students' finances
http://scholarship.mediasworks.com/