Replaces newlines, tabs, and multiple spaces with a single space.
Parameters
$text
stringrequired
Source
public function min_whitespace( $text ) {
return preg_replace( '|[\r\n\t ]+|', ' ', $text );
}
Replaces newlines, tabs, and multiple spaces with a single space.
$text
stringrequiredpublic function min_whitespace( $text ) {
return preg_replace( '|[\r\n\t ]+|', ' ', $text );
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.