trim($a_string); // removes all newline, carriage returns, and formating
$in_str_var_name=str_replace("search_for", "replace_with", $in_str_var_name); replaces any strings or chars also- check out php.net documentation on string-- many other useful functions for string manipulation -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php