git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@124210 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Andy Lindeman 2003-04-21 22:33:13 +00:00
parent 19dbcdef66
commit 864e1edaf0

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.56 $ -->
<!-- $Revision: 1.57 $ -->
<chapter id="language.variables">
<title>Variables</title>
@ -138,6 +138,22 @@ AC
</programlisting>
</example>
</para>
<para>
Note that you cannot decrement a string, only increment it.
<example>
<title>Arithmetric Operations on Character Variables (example 2)</title>
<programlisting role="php">
<![CDATA[
<?php
$x = 'a';
$x++; //$x now equals 'b'
$x--; //this doesn't work, $x still equals 'b'
?>
]]>
</programlisting>
</example>
</para>
</sect1>
<sect1 id="language.variables.predefined">