note 91822 deleted from language.operators.increment by danbrown

From: Date: Fri, 26 Jun 2009 17:22:13 +0000
Subject: note 91822 deleted from language.operators.increment by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157555@lists.php.net to get a copy of this message
Note Submitter: maeloun [at{ yahoo }dot] fr ---- "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 ). Note that character variables can be incremented but not decremented and even so only plain ASCII characters (a-z and A-Z) are supported." I think this sentence should be edited to become: "PHP follows Perl's convention when dealing with arithmetic operations on character variables and not C's. For example, in Perl 'Z'++ turns into 'AA' (and 'Z'+1 turns into '1'), while in C 'Z'+1 turns into '[' ( ord('Z') == 90, ord('[') == 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. "

« previous php.notes (#157555) next »