svn: /phpdoc/en/trunk/language/types/ string.xml
| From: | Mike Ford | Date: | Thu, 09 Jun 2011 08:42:06 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/types/ string.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-8229@lists.php.net to get a copy of this message | ||
mgf Thu, 09 Jun 2011 08:42:06 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=311966
Log:
Improve Strings intro re size of characters and (non-)Unicode support.
Changed paths:
U phpdoc/en/trunk/language/types/string.xml
Modified: phpdoc/en/trunk/language/types/string.xml
===================================================================
--- phpdoc/en/trunk/language/types/string.xml 2011-06-09 08:24:12 UTC (rev 311965)
+++ phpdoc/en/trunk/language/types/string.xml 2011-06-09 08:42:06 UTC (rev 311966)
@@ -5,9 +5,9 @@
<!-- FIXME PHP_6 Likely unicode support will alter this -->
<para>
- A <type>string</type> is series of characters, therefore, a character is
- the same as a byte. That is, there are exactly 256 different characters
- possible. This also implies that PHP has no native support of Unicode. See
+ A <type>string</type> is series of characters, where a character is
+ the same as a byte. This means that PHP only supports a 256-character set,
+ and hence does not offer native Unicode support. See
<function>utf8_encode</function> and <function>utf8_decode</function> for
some
basic Unicode functionality.
</para>
@@ -358,8 +358,8 @@
</example>
<para>
- PHP 5.3.0 also introduces the possibility for Heredocs to
- use double quotes in declarings:
+ Starting with PHP 5.3.0, the opening Heredoc identifier may optionally be
+ enclosed in double quotes:
</para>
<example>
@@ -760,7 +760,7 @@
Illegal offset type emits <constant>E_NOTICE</constant>.
Negative offset emits <constant>E_NOTICE</constant> in write but reads empty
string.
Only the first character of an assigned string is used.
- Assigning empty string assigns NUL byte.
+ Assigning empty string assigns NULL byte.
</simpara>
</warning>