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
 [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: Wed Nov 06 05:01:28 2024 UTC