Trim only tab and newline characters from $str : String Trim Chop : String PHP Source Code


PHP Source Code » String » String Trim Chop »

 

Trim only tab and newline characters from $str



<?

$str = "   string t n";

$str = trim ($str, "tn");

echo$str );

echo(strlen($str));

?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo String
» String Trim Chop