From 8779fa151ad76377128442f1de643d09b195a3d8 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Sat, 30 Nov 2002 16:21:10 +0000 Subject: [PATCH] Documentation Bug #2965 "Why is ('Z'+1) < 'Z'?" git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@106290 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/variables.xml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/language/variables.xml b/language/variables.xml index 542d55dda5..a714394eb1 100644 --- a/language/variables.xml +++ b/language/variables.xml @@ -1,5 +1,5 @@ - + Variables @@ -109,7 +109,35 @@ $bar = &test(); // Invalid. + + PHP follows Perl's convention when dealing with arithmetic operations + on character variables and not C's. For example, in Perl 'Z'+1 turns + into 'AA', while in C 'Z'+1 turns into '[' { ord('Z') == 90, ord('[') == 91 ). + + Arithmetric Operations on Character Variables + + +]]> + + +