CODE:function c_morph_string($source){
$source = str_replace("\n", " ", $source);
$source = str_replace("\t", " ", $source);
$source = str_replace("\r", " ", $source);
$source = str_replace("\a", "", $source);
$source = str_replace("\e", "", $source);
$source = str_replace("\A", "", $source);
$source = str_replace("|", "_", $source);
$source = str_replace(" ", " ", $source);
$source = str_replace(" ", " ", $source);
$source = str_replace(" ", " ", $source);
$source = str_replace(" ", " ", $source);
$source = str_replace(" ", " ", $source); # òàê ìîæíî óíè÷òîæèòü âñå ëèøíèå ïðîáåëû
$source = stripslashes ($source);
return $source; |