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

From: Date: Thu, 25 Dec 2008 01:24:24 +0000
Subject: cvs: phpdoc-zh /language/types null.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-3140@lists.php.net to get a copy of this message
eniac2008 Thu Dec 25 01:24:24 2008 UTC Added files: /phpdoc-zh/language/types null.xml Log: Sync with EN-Revision 1.5 http://cvs.php.net/viewvc.cgi/phpdoc-zh/language/types/null.xml?view=markup&rev=1.1 Index: phpdoc-zh/language/types/null.xml +++ phpdoc-zh/language/types/null.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- $Author: eniac2008 --> <!-- EN-Revision: 1.5 Maintainer: Altair Status: ready --> <!-- CREDITS: Geogory dallas --> <sect1 xml:id="language.types.null"> <title>NULL</title> <para> 特殊的 &null; 值表示一个变量没有值。<type>NULL</type> 类型唯一可能的值就是 &null;。 </para> <note> <simpara> <type>NULL</type> 类型是 PHP 4 引进的。 </simpara> </note> <para> 在下列情况下一个变量被认为是 &null;: </para> <itemizedlist> <listitem> <para> 被赋值为 &null;。 </para> </listitem> <listitem> <para> 尚未被赋值。 </para> </listitem> <listitem> <para> 被 <function>unset</function>。 </para> </listitem> </itemizedlist> <sect2 xml:id="language.types.null.syntax"> <title>语法</title> <para> &null; 类型只有一个值,就是大小写不敏感的关键字 &null;(你可以写成NULL,也可以写成null)。 </para> <informalexample> <programlisting role="php"> <![CDATA[ <?php $var = NULL; ?> ]]> </programlisting> </informalexample> <para> 参见 <function>is_null</function> 和 <function>unset</function>。 </para> </sect2> <sect2 xml:id="language.types.null.casting"> <title>转换到 <literal>NULL</literal></title> <para> 将一个变量转换为 <type>null</type> 类型将会删除该变量并且unset它的值。 </para> </sect2> </sect1> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->

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