Summery Summery
Replace newlines, tabs, and multiple spaces with a single space
Syntax Syntax
Parameters Parameters
- $string
-
(Required)
Return Return
(string)
Source Source
File: wp-admin/includes/class-wp-importer.php
public function min_whitespace( $string ) { return preg_replace( '|[\r\n\t ]+|', ' ', $string ); }