Bug #1169 Updated: echo doesn't deal well with strings containing \n

From: Date: Sun, 21 Feb 1999 19:45:03 +0000
Subject: Bug #1169 Updated: echo doesn't deal well with strings containing \n
Groups: php.dev 
Request: Send a blank email to php-dev+get-4210@lists.php.net to get a copy of this message
ID: 1169 Updated by: jim Reported By: penn@usa.net Status: Closed Bug Type: Misbehaving function Assigned To: Comments: As Egon has said, your bug report makes no sense. Your script prints "-dGVzdHRlc3Q=-", just as I would expect. I fail to see how a string containing "\n" gets into the picture at all. Please describe exactly what is going wrong, and what you expect it to look like if it were going right. echo deals extremely well with strings containing newlines. One thing to note is that a newline does not always produce a line break in HTML (it only does inside a PRE section), so you may want to look at the nl2br() function to turn newlines into breaks, if that is the problem you're having. I am closing this bug. If there is a real problem here, open a new bug. (There's too much bad karma collected here....) Full Bug description available at: http://ca.php.net/bugs.php3?id=1169 -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4210) next »