<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/reserved.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'reserved.other-reserved-words.php',
    1 => 'その他の予約語の一覧',
    2 => 'その他の予約語の一覧',
  ),
  'up' => 
  array (
    0 => 'reserved.php',
    1 => '予約語の一覧',
  ),
  'prev' => 
  array (
    0 => 'reserved.constants.php',
    1 => '定義済みの定数',
  ),
  'next' => 
  array (
    0 => 'resource.php',
    1 => 'リソース型の一覧',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'appendices/reserved.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="reserved.other-reserved-words" class="sect1">
   <h2 class="title">その他の予約語の一覧</h2>
   <p class="simpara">
    これらの名前は、クラスやインターフェイスそしてトレイトの名前として使えません。
    PHP 8.0 より前のバージョンでは、名前空間の中であっても使えませんでした。
   </p>
   <p class="para">
    <table class="doctable table">
     <caption><strong>予約語</strong></caption>
     
      <tbody class="tbody">
       <tr>
        <td>
         parent
        </td>
        <td>
         self
        </td>
        <td>
         int
        </td>
        <td>
         float
        </td>
       </tr>

       <tr>
        <td>
         bool
        </td>
        <td>
         string
        </td>
        <td>
         true
        </td>
        <td>
         false
        </td>
       </tr>

       <tr>
        <td>
         null
        </td>
        <td>
         void (PHP 7.1 以降)
        </td>
        <td>
         iterable (PHP 7.1 以降)
        </td>
        <td>
         object (PHP 7.2 以降)
        </td>
       </tr>

       <tr>
        <td>
         mixed (PHP 8.0 以降)
        </td>
        <td>
         never (PHP 8.1 以降)
        </td>
        <td>
         array (PHP 8.5 以降)
        </td>
        <td>
         callable (PHP 8.5 以降)
        </td>
       </tr>

      </tbody>
     
    </table>

   </p>
   <p class="para">
    これらの名前は、弱い予約語として確保されています。
    クラスやインターフェイスそしてトレイトの名前として使えますが、
    使わないことを強く推奨します。将来のバージョンの PHP で使われる可能性があるためです。
   </p>
   <p class="para">
    <table class="doctable table">
     <caption><strong>弱い予約語</strong></caption>
     
      <tbody class="tbody">
       <tr>
        <td>
         enum
        </td>
        <td>
         resource
        </td>
        <td>
         numeric
        </td>
        <td>
        </td>
       </tr>

      </tbody>
     
    </table>

   </p>
  </div><?php manual_footer($setup); ?>