|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31425 $string++ / $string-- ?
Submitted: 2005-01-06 06:35 UTC Modified: 2005-01-10 14:43 UTC
From: gregorschg at web dot de Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.0.3 OS: win xp
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: gregorschg at web dot de
New email:
PHP Version: OS:


 [2005-01-06 06:35 UTC] gregorschg at web dot de
I have a problem to decreasing strings.
Increasing a string works fine.

Reproduce code:
$letter = "C";
echo "$letter";

Expected result:
output of $str >> "B"

Actual result:
output of $str >> "C"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-08 20:17 UTC] gregorschg at web dot de
sorry, I mean output of $letter is "C" and expected output of $letter is "B".
 [2005-01-10 14:43 UTC]

"Note that character variables can be incremented but not decremented."

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Sep 29 14:01:24 2023 UTC