note 91822 added to language.operators.increment

From: Date: Fri, 26 Jun 2009 17:21:13 +0000
Subject: note 91822 added to language.operators.increment
Groups: php.notes 
Request: Send a blank email to php-notes+get-157554@lists.php.net to get a copy of this message
"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. " ---- Server IP: 89.31.146.176 Probable Submitter: 86.70.86.7 ---- Manual Page -- http://www.php.net/manual/en/language.operators.increment.php Edit -- https://master.php.net/note/edit/91822 Del: integrated -- https://master.php.net/note/delete/91822/integrated Del: useless -- https://master.php.net/note/delete/91822/useless Del: bad code -- https://master.php.net/note/delete/91822/bad+code Del: spam -- https://master.php.net/note/delete/91822/spam Del: non-english -- https://master.php.net/note/delete/91822/non-english Del: in docs -- https://master.php.net/note/delete/91822/in+docs Del: other reasons-- https://master.php.net/note/delete/91822 Reject -- https://master.php.net/note/reject/91822 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#157554) next »