cvs: phpdoc-zh /language/types array.xml

From: Date: Tue, 20 Jan 2009 05:06:58 +0000
Subject: cvs: phpdoc-zh /language/types array.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-3152@lists.php.net to get a copy of this message
haohappy Tue Jan 20 05:06:58 2009 UTC Modified files: /phpdoc-zh/language/types array.xml Log: note added. http://cvs.php.net/viewvc.cgi/phpdoc-zh/language/types/array.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-zh/language/types/array.xml diff -u phpdoc-zh/language/types/array.xml:1.1 phpdoc-zh/language/types/array.xml:1.2 --- phpdoc-zh/language/types/array.xml:1.1 Thu Dec 25 01:21:43 2008 +++ phpdoc-zh/language/types/array.xml Tue Jan 20 05:06:57 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: eniac2008 --> <!-- EN-Revision: 1.7 Maintainer: Altair Status: ready --> <!-- CREDITS: Geogory dallas --> @@ -461,7 +461,7 @@ <note> <simpara> 重申一次,在双引号字符串中,不给索引加上引号是合法的因此 - <literal>"$foo[bar]"</literal>是合法的。至于为什么参见以上的例子和<link + <literal>"$foo[bar]"</literal>是合法的(“合法”的原文为valid。在实际测试中,这么做确实可以访问数组的该元素,但是会报一个常量未定义的notice。无论如何,强烈建议不要使用$foo[bar]这样的写法,而要使用$foo['bar']来访问数组中元素。--haohappy注)。至于为什么参见以上的例子和<link linkend="language.types.string.parsing">字符串中的变量解析</link>中的解释。 </simpara> </note>

« previous php.doc.zh (#3152) next »