philip          Thu May  4 02:21:29 2006 UTC

  Modified files:              
    /phpdoc/en/language types.xml 
  Log:
  $str{42} isn't deprecated (yet?), but $str[42] is preferred. We'll mention 
that.
  
  
http://cvs.php.net/viewcvs.cgi/phpdoc/en/language/types.xml?r1=1.165&r2=1.166&diff_format=u
Index: phpdoc/en/language/types.xml
diff -u phpdoc/en/language/types.xml:1.165 phpdoc/en/language/types.xml:1.166
--- phpdoc/en/language/types.xml:1.165  Tue May  2 18:05:54 2006
+++ phpdoc/en/language/types.xml        Thu May  4 02:21:28 2006
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.165 $ -->
+<!-- $Revision: 1.166 $ -->
  <chapter id="language.types">
   <title>Types</title>
 
@@ -1089,9 +1089,8 @@
      </para>
      <note>
       <simpara>
-       For backwards compatibility, you may still use braces like 
-       <varname>$str{42}</varname> for the same purpose. However, this syntax 
-       is deprecated as of PHP 6.
+       They may also be accessed using braces like <varname>$str{42}</varname> 
+       for the same purpose. However, using square array-brackets is preferred.
       </simpara>
      </note>
      <para>
@@ -1115,7 +1114,7 @@
 $str = 'Look at the sea';
 $str[strlen($str)-1] = 'e';
 
-// Deprecated syntax with braces
+// Alternative method using {}
 $third = $str{2};
 
 ?>

Reply via email to