mirror of
https://github.com/php/doc-ja.git
synced 2026-03-24 07:02:08 +01:00
48 lines
1.4 KiB
XML
48 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 161dde4fe721309398dd324edbf02aec409f127b Maintainer: mumumu Status: ready -->
|
|
<sect1 xml:id="language.types.mixed">
|
|
<title>Mixed</title>
|
|
|
|
<para>
|
|
<type>mixed</type> は、あらゆる値を受け入れる型です。
|
|
これは、以下の
|
|
<link linkend="language.types.type-system.composite.union">union 型</link>
|
|
と同等です。
|
|
<!-- Need to improve rendering of free-standing type elements in PhD
|
|
<type class="union">
|
|
<type>object</type><type>resource</type><type>array</type><type>string</type>
|
|
<type>int</type><type>float</type><type>bool</type><type>null</type>
|
|
</type>.
|
|
-->
|
|
<literal>object|resource|array|string|float|int|bool|null</literal>.
|
|
この型は、PHP 8.0.0 以降で利用可能です。
|
|
</para>
|
|
|
|
<para>
|
|
<type>mixed</type> 型は、型理論の用語で言うと、トップ型にあたります。
|
|
つまり、他の全ての型は、この型の部分型になります
|
|
</para>
|
|
|
|
</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
|
|
-->
|