#31425 [Opn]: $string++ / $string-- ?
| From: | gregorschg at web dot de | Date: | Sat, 08 Jan 2005 19:18:00 +0000 |
| Subject: | #31425 [Opn]: $string++ / $string-- ? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-71618@lists.php.net to get a copy of this message | ||
ID: 31425
User updated by: gregorschg at web dot de
Reported By: gregorschg at web dot de
Status: Open
Bug Type: Performance problem
Operating System: win xp
PHP Version: 5.0.3
New Comment:
sorry, I mean output of $letter is "C" and expected output of $letter
is "B".
Previous Comments:
------------------------------------------------------------------------
[2005-01-06 06:35:30] gregorschg at web dot de
Description:
------------
I have a problem to decreasing strings.
Increasing a string works fine.
Reproduce code:
---------------
$letter = "C";
$letter--;
echo "$letter";
Expected result:
----------------
output of $str >> "B"
Actual result:
--------------
output of $str >> "C"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31425&edit=1