|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
25 - 7 = ?
Subscribe to this entry?

 [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: Fri May 24 21:01:30 2024 UTC