-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathnull.xml
More file actions
executable file
·90 lines (77 loc) · 1.98 KB
/
null.xml
File metadata and controls
executable file
·90 lines (77 loc) · 1.98 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: c5849e0c38a9bf7921d40f8ec946110ba8994d01 Maintainer: cucinato Status: ready -->
<sect1 xml:id="language.types.null">
<title>NULL</title>
<para>
Il valore speciale &null; rappresenta una variable senza valore. &null; è il
solo valore possibile del tipo <type>null</type>.
</para>
<para>
Una variabile è <type>null</type> se:
</para>
<itemizedlist>
<listitem>
<para>
le è stato assegnata la costante &null;.
</para>
</listitem>
<listitem>
<para>
non le è stato ancora assegnato un valore.
</para>
</listitem>
<listitem>
<para>
è stata cancellata con la funzione <function>unset</function>.
</para>
</listitem>
</itemizedlist>
<sect2 xml:id="language.types.null.syntax">
<title>Syntax</title>
<para>
Esiste solo un valore di tipo <type>null</type>, la costante
&null;, che è invariante, sia essa in maiuscolo o in minuscolo.
</para>
<informalexample>
<programlisting role="php">
<![CDATA[
<?php
$var = NULL;
?>
]]>
</programlisting>
</informalexample>
<para>
Vedere anche le funzioni <function>is_null</function> e
<function>unset</function>.
</para>
</sect2>
<sect2 xml:id="language.types.null.casting">
<title>Casting a &null;</title>
<para>
Effettuare il casting di una variabile a <type>null</type> usando <literal>(unset) $var</literal>
<emphasis>non</emphasis> rimuove la variabile, né cancella il valore.
Non fa altro che restituire un valore &null;.
</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
-->