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 ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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