Definition:
function normalize_whitespace( $str ) {}
Parameters
- $str
Source code
function normalize_whitespace( $str ) { $str = trim($str); $str = str_replace("\r", "\n", $str); $str = preg_replace( array( '/\n+/', '/[ \t]+/' ), array( "\n", ' ' ), $str ); return $str; }
2459
No comments yet... Be the first to leave a reply!