Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




normalize_whitespace [ WordPress Function ]

normalize_whitespace ( $str )
Defined at:



No description yet.

Source


<?php
function normalize_whitespace$str ) {
    
$str  trim($str);
    
$str  str_replace("\r""\n"$str);
    
$str  preg_replace( array( '/\n+/''/[ \t]+/' ), array( "\n"' ' ), $str );
    return 
$str;
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics