<?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 => 'zh',
  ),
  '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' => 'zh',
    '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">
    以下关键字不可被用于类名、接口名和trait名，在 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>
       </tr>

      </tbody>
     
    </table>

   </p>
   <p class="para">
    以下关键词已经被建议保留。尽管你仍然可以将它们用于类名、接口名和 trait
    名，但是考虑到在将来的PHP版本中可能会使用，因此非常不推荐去使用它们。
   </p>
   <p class="para">
    <table class="doctable table">
     <caption><strong>Soft reserved words</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); ?>