/trunk/global.inc |
---|
433,4 → 433,16 |
$s); |
} |
/** |
* Reduces sequences of two or more consecutive white-space characters |
* in an input to a single space. |
* |
* @param string $s |
* @return string |
*/ |
function reduceWhitespace($s) |
{ |
return preg_replace('/\s{2,}/', ' ', $s); |
} |
?> |