derick Mon Feb 17 14:11:38 2003 EDT Modified files: /phpdoc/en/language types.xml Log: - Fixed XML, remember, CDATA sections can not include comments like this Index: phpdoc/en/language/types.xml diff -u phpdoc/en/language/types.xml:1.107 phpdoc/en/language/types.xml:1.108 --- phpdoc/en/language/types.xml:1.107 Fri Feb 14 18:18:02 2003 +++ phpdoc/en/language/types.xml Mon Feb 17 14:11:36 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.107 $ --> +<!-- $Revision: 1.108 $ --> <chapter id="language.types"> <title>Types</title> @@ -2164,14 +2164,14 @@ <![CDATA[ <?php $foo = "0"; // $foo is string (ASCII 48) -<!-- bad example, no real operator (must be used with variable, modifies it too) -$foo++; // $foo is the string "1" (ASCII 49) ---> $foo += 2; // $foo is now an integer (2) $foo = $foo + 1.3; // $foo is now a float (3.3) $foo = 5 + "10 Little Piggies"; // $foo is integer (15) $foo = 5 + "10 Small Pigs"; // $foo is integer (15) -<!-- +?> +]]> +<!-- bad example, no real operator (must be used with variable, modifies it too) +$foo++; // $foo is the string "1" (ASCII 49) TODO: explain ++/- - behaviour with strings @@ -2189,8 +2189,6 @@ - -'abc' = 'abc' --> -?> -]]> </programlisting> </informalexample> </para>
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php