-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathnull.xml
More file actions
76 lines (65 loc) · 1.79 KB
/
null.xml
File metadata and controls
76 lines (65 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 3f1dbc451b313fb1ec8058f24c1beccf55fce316 Maintainer: Avenger Status: ready -->
<!-- CREDITS: Geogory, dallas, Altair, mowangjuanzi -->
<sect1 xml:id="language.types.null">
<title>NULL</title>
<para>
<type>null</type> 类型是 PHP 的原子类型(unit type),也就是说,它仅有一个值 &null;。
</para>
<para>
未定义和 <function>unset</function> 的变量都将解析为值 &null;。
</para>
<sect2 xml:id="language.types.null.syntax">
<title>语法</title>
<para>
&null; 类型只有一个值,就是不区分大小写的常量 &null;。
</para>
<informalexample>
<programlisting role="php">
<![CDATA[
<?php
$var = NULL;
?>
]]>
</programlisting>
</informalexample>
</sect2>
<sect2 xml:id="language.types.null.casting">
<title>转换到 &null;</title>
&warn.deprecated.feature-7-2-0.removed-8-0-0;
<para>
使用 <literal>(unset) $var</literal> 将一个变量转换为 <type>null</type>
将<emphasis>不会</emphasis>删除该变量或 unset 其值。仅是返回 &null; 值而已。
</para>
</sect2>
<sect2 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>is_null</function></member>
<member><function>unset</function></member>
</simplelist>
</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:"~/.phpdoc/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
-->