|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26932 Problem with output of escape sequences
Submitted: 2004-01-16 05:26 UTC Modified: 2004-01-16 06:11 UTC
From: mom_ka_banu at yahoo dot co dot uk Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.3.4 OS: Linux 9(Shrike)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: mom_ka_banu at yahoo dot co dot uk
New email:
PHP Version: OS:


 [2004-01-16 05:26 UTC] mom_ka_banu at yahoo dot co dot uk
when i write a php script like
 echo "This prints a newline\nagain a new line\tnow a tab";
when i save this file as abc.php and ope it in mozilla or Konqueror the output is

This prints a newlineagain a new linenow a tab

It simply bypasses all escape characters like \t or \n

Expected result:
How to fix it


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-16 06:11 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

 echo \"<pre>This prints a newline\\nagain a new line\\tnow a tab</pre>\";
 echo nl2br(\"This prints a newline\\nagain a new line\\tnow a tab\");

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 09:01:29 2024 UTC