|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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: Sun Jun 23 08:01:28 2024 UTC