From 22ac47b4feec22bc8867004b6faf9a6623e98b68 Mon Sep 17 00:00:00 2001 From: Peter Cowburn Date: Tue, 26 Apr 2011 19:29:41 +0000 Subject: [PATCH] decrementing, or incrementing non-A-Za-z, string variables has no effect (doc #54549) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@310528 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/operators.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/language/operators.xml b/language/operators.xml index 84fd972664..d59e6688ec 100644 --- a/language/operators.xml +++ b/language/operators.xml @@ -1575,6 +1575,8 @@ echo "Should be 4: " . $a . "
\n"; (ASCII value of 'Z' is 90, ASCII value of '[' is 91). Note that character variables can be incremented but not decremented and even so only plain ASCII characters (a-z and A-Z) are supported. + Incrementing/decrementing other character variables has no effect, the + original string is unchanged. Arithmetic Operations on Character Variables