#37921 [Opn->Bgs]: Feature?

From: Date: Tue, 27 Jun 2006 05:19:53 +0000
Subject: #37921 [Opn->Bgs]: Feature?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98814@lists.php.net to get a copy of this message
 ID:               37921
 Updated by:       johannes@php.net
 Reported By:      justanotheruser2006 at yahoo dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Feature/Change Request
 Operating System: winxp
 PHP Version:      5.1.5CVS
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php

These are our casting rules which people rely on.


Previous Comments:
------------------------------------------------------------------------

[2006-06-27 02:59:17] justanotheruser2006 at yahoo dot com

Description:
------------
This is not a bug, but a sugestion. The codes output was not what was
expected... When adding a value to a string that has a value in the
front, should the value just increase in the front of the string and
keep the remainder of the string in tact?

Reproduce code:
---------------
<?
$a = 98;
$a += 3;
echo "<br>A = $a";
$a .= " Test";
echo "<br>String A = $a";
$a += 3;
echo "<br>Test add 3 to string A = $a";
?>

Expected result:
----------------
A = 101
String A = 101 Test
Test add 3 to string A = 104 Test

Actual result:
--------------
A = 101
String A = 101 Test
Test add 3 to string A = 104


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37921&edit=1


Thread (2 messages)

« previous php.bugs (#98814) next »