#31670 [Opn->Bgs]: new line character
| From: | derick@php.net | Date: | Sun, 23 Jan 2005 18:51:28 +0000 |
| Subject: | #31670 [Opn->Bgs]: new line character | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-72702@lists.php.net to get a copy of this message | ||
ID: 31670
Updated by: derick@php.net
Reported By: ethanym at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Performance problem
Operating System: Windows XP Pro
PHP Version: 5.0.3
New Comment:
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.
.
Previous Comments:
------------------------------------------------------------------------
[2005-01-23 19:36:24] ethanym at gmail dot com
Description:
------------
The newline character "\n" is being translated by the engine as a
non-breaking space.
Reproduce code:
---------------
<?php
$price = 3.95;
$tax_rate = 0.08;
$tax_amount = $price * $tax_rate;
$total_cost = $price + $tax_amount;
$username = 'james';
$domain = '@example.com';
$email_address = $username . $domain;
print 'The tax is ' . $tax_amount;
print "\n";
print 'The total cost is ' .$total_cost;
print "\n";
print $email_address;
?>
Expected result:
----------------
The tax is 0.316
The total cost is 4.266
james@example.com
Actual result:
--------------
The tax is 0.316 The total cost is 4.266 james@example.com
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31670&edit=1