From f8732f08c5e0963a818ba29aa1866e4eab01ebd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Luis=20Ferreira=20da=20Silva=20Bacci?= Date: Fri, 27 Nov 2015 14:46:55 +0000 Subject: [PATCH] Revert wrong modification. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338190 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/operators.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language/operators.xml b/language/operators.xml index 3176ebee04..46ff50fd9d 100644 --- a/language/operators.xml +++ b/language/operators.xml @@ -1788,7 +1788,7 @@ echo "Should be 4: " . $a . "
\n"; PHP follows Perl's convention when dealing with arithmetic operations on character variables and not C's. For example, in PHP and Perl $a = 'Z'; $a++; turns $a into 'AA', while in C - a = 'Z'; a++; turns $a into '[' + a = 'Z'; a++; turns a into '[' (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 alphabets and digits (a-z, A-Z and 0-9) are supported.