1
0
mirror of https://github.com/php/doc-ja.git synced 2026-03-27 00:22:08 +01:00
Files
archived-doc-ja/language/types/null.xml
2025-11-16 12:17:04 +09:00

80 lines
1.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 3f1dbc451b313fb1ec8058f24c1beccf55fce316 Maintainer: mumumu Status: ready -->
<sect1 xml:id="language.types.null">
<title>NULL</title>
<para>
<type>null</type> 型は、PHP の unit 型 (意味のある情報を持たないことを示す型) です。
つまり、単一の値 &null; しか持ちません。
</para>
<para>
未定義、そして <function>unset</function>
された値は、値 &null; に解決されます。
</para>
<sect2 xml:id="language.types.null.syntax">
<title>文法</title>
<para>
<type>null</type> 型の値は一つだけで、
大文字小文字を区別しない定数 &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>。単に &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
-->