Files
Rasmus Lerdorf 3e63ed1ffc No more {}'s
2005-11-16 15:19:04 +00:00

31 lines
989 B
XML
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<slide title="PHP and Unicode?">
<break lines="1"/>
<image filename="andrei.jpg" marginright="1em" align="right"/>
<blurb fontsize="2.5em">
New string types: IS_BINARY, IS_STRING and IS_UNICODE
</blurb>
<example title="Indexing Operator" fontsize="1.6em" marginleft="1em" marginright="28em"><![CDATA[<?php
$str = "大学"; //bytes are e5 a4 a7 e5 ad a6
echo $str[1]; //result is 学
$str[0] = 'サ'; // string is now サ学
// bytes are e3 82 b5 e5 ad a6
]]></example>
<example title="Unicode Identifiers" fontsize="1.6em" marginleft="1em" marginright="28em"><![CDATA[<?php
class コンポーネント {
   function コミット {  .. }
}
$プロバイダ = array();
$プロバイダ[‘רַעְיולוּחַ שָׁנָה’] = new コンポーネント();
]]></example>
<break lines="1" />
<example fontsize="2em" examplebackground="#ffaabb" marginleft="20em">Unicode and PHP 6.0
Date: Thursday, September 15th, 2005
Time: 15:45 - 17:15</example>
</slide>