mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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
This commit is contained in:
parent
db64c6bb68
commit
22ac47b4fe
1 changed files with 2 additions and 0 deletions
|
@ -1575,6 +1575,8 @@ echo "Should be 4: " . $a . "<br />\n";
|
|||
(ASCII value of <literal>'Z'</literal> is 90, ASCII value of <literal>'['</literal> 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.
|
||||
<example>
|
||||
<title>Arithmetic Operations on Character Variables</title>
|
||||
<programlisting role="php">
|
||||
|
|
Loading…
Reference in a new issue