Re: svn: /phpdoc/en/trunk/language/ operators.xml
| From: | Peter Cowburn | Date: | Fri, 27 Nov 2015 14:33:49 +0000 |
| Subject: | Re: svn: /phpdoc/en/trunk/language/ operators.xml | ||
| References: | 1 | Groups: | php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-13866@lists.php.net to get a copy of this message | ||
On 27 November 2015 at 14:17, André Luis Ferreira da Silva Bacci <ae@php.net
> wrote:
> ae Fri, 27 Nov 2015 14:17:57 +0000
>
> Revision:
> http://svn.php.net/viewvc?view=revision&revision=338187
>
> Log:
> Typo.
>
> Changed paths:
> U phpdoc/en/trunk/language/operators.xml
>
> Modified: phpdoc/en/trunk/language/operators.xml
> ===================================================================
> --- phpdoc/en/trunk/language/operators.xml 2015-11-27 09:18:36 UTC
> (rev 338186)
> +++ phpdoc/en/trunk/language/operators.xml 2015-11-27 14:17:57 UTC
> (rev 338187)
> @@ -1788,7 +1788,7 @@
> PHP follows Perl's convention when dealing with arithmetic operations
> on character variables and not C's. For example, in PHP and Perl
> <literal>$a = 'Z'; $a++;</literal> turns
> <literal>$a</literal> into
> <literal>'AA'</literal>, while in C
> - <literal>a = 'Z'; a++;</literal> turns
> <literal>a</literal> into
> <literal>'['</literal>
> + <literal>a = 'Z'; a++;</literal> turns
> <literal>$a</literal> into
> <literal>'['</literal>
>
I don't think you really wanted to do this. "<literal>a</literal>" was
correct, in this case, since it is referring to the C code snippet.
> (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 alphabets and digits (a-z, A-Z and 0-9) are
> supported.
> @@ -2331,7 +2331,7 @@
> $d = 'NotMyClass';
> var_dump($a instanceof $d); // no fatal error here
> ?>
> - ]]>
> +]]>
> </programlisting>
> &example.outputs;
> <screen>
>
>
> --
> PHP Documentation Commits Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>