php.net |  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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
Description:
------------
when i write a php script like
<?php
 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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-16 06:11 UTC] eru@php.net
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 http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

<?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 Oct 27 16:01:27 2024 UTC