I need to strip line break characters (or whatever the character is that
results from users hitting their "enter" key inside a TEXTAREA form
input) from a string.  These characters will appear anywhere in the
string, not just at the end.  In perl, the regex would look something
like this...

$a="a\nb\nc\nd\n\n\n";
$b=$/;
$a =~ s/$b//g;  # produces "abcd"

but i'm a newbie and i don't know how I can translate this to PHP syntax
to do the same thing.  Any help is appreciated!

Thanks!



providing the finest in midget technology

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to