ID:               37921
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to