Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 12306

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>保留字列表</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="Appendices"
HREF="appendices.html"><LINK
REL="PREVIOUS"
TITLE="函数别名列表"
HREF="aliases.html"><LINK
REL="NEXT"
TITLE="预定义变量"
HREF="reserved.variables.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="appendix"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="aliases.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="reserved.variables.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="appendix"
><H1
><A
NAME="reserved"
>附录 L. 保留字列表</A
></H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>目录</B
></DT
><DT
><A
HREF="reserved.html#reserved.keywords"
>关键词列表</A
></DT
><DT
><A
HREF="reserved.variables.html"
>预定义变量</A
></DT
><DT
><A
HREF="reserved.classes.html"
>预定义类</A
></DT
><DT
><A
HREF="reserved.constants.html"
>预定义常量</A
></DT
></DL
></DIV
><P
>&#13;  以下是 PHP 中预定义标识符的列表。没有列在下面的标识符可以在脚本中作为自定义标识符使用。这些列表包括关键字和预定义变量、常量和类名。这些列表可能有遗漏,它是不完整的。
 </P
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="reserved.keywords"
>关键词列表</A
></H1
><P
>&#13;   这些词语在 PHP 中有着特殊的意义。它们中有些像是函数,有些像是常量……但是它们不是的,它们只是语言结构的一部分。不能使用它们的任何一个作为常量、方法名或是类名。但是可以将它们作为变量名使用,不过这样会导致混淆。
  </P
><DIV
CLASS="table"
><A
NAME="AEN298466"
></A
><P
><B
>表 L-1. PHP 关键词</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL><COL><COL><COL><COL><TBODY
><TR
><TD
>&#13;       <A
HREF="language.operators.logical.html"
>and</A
>
      </TD
><TD
>&#13;       <A
HREF="language.operators.logical.html"
>or</A
>
      </TD
><TD
>&#13;       <A
HREF="language.operators.logical.html"
>xor</A
>
      </TD
><TD
>&#13;       <A
HREF="language.constants.predefined.html"
>__FILE__</A
>
      </TD
><TD
>&#13;       <A
HREF="reserved.classes.html#reserved.classes.php5"
>exception</A
> (PHP 5)
      </TD
></TR
><TR
><TD
>&#13;       <A
HREF="language.constants.predefined.html"
>__LINE__</A
>
      </TD
><TD
>&#13;       <A
HREF="function.array.html"
><B
CLASS="function"
>array()</B
></A
>
      </TD
><TD
>&#13;       <A
HREF="control-structures.foreach.html"
>as</A
>
      </TD
><TD
>&#13;       <A
HREF="control-structures.break.html"
>break</A
>
      </TD
><TD
>&#13;       <A
HREF="control-structures.switch.html"
>case</A
>
      </TD
></TR
><TR
><TD
>&#13;       <A
HREF="language.oop.html#keyword.class"
>class</A
>
      </TD
><TD
>&#13;       <A
HREF="language.oop5.constants.html"
>const</A
>
      </TD
><TD
>&#13;       <A
HREF="control-structures.continue.html"
>continue</A
>
      </TD
><TD
>&#13;       <A
HREF="control-structures.declare.html"
>declare</A
>
      </TD
><TD
>&#13;       <A
HREF="control-structures.switch.html"
>default</A
>
      </TD
></TR
><TR
><TD
>&#13;       <A
HREF="function.die.html"
><B
CLASS="function"
>die()</B
></A
>
      </TD
><TD
>&#13;       <A
HREF="control-structures.do.while.html"
>do</A
>
      </TD
><TD
>&#13;       <A
HREF="function.echo.html"
><B
CLASS="function"
>echo()</B
></A
>
      </TD
><TD
>&#13;       <A
HREF="control-structures.else.html"
>else</A
>
      </TD
><TD
>&#13;       <A
HREF="control-structures.elseif.html"
>elseif</A
>
      </TD
></TR
><TR
><TD
>&#13;       <A
HREF="function.empty.html"
><B
CLASS="function"
>empty()</B
></A
>
      </TD
><TD
>&#13;       <A
HREF="control-structures.declare.html"
>enddeclare</A
>
      </TD
><TD
>&#13;       <A
HREF="control-structures.alternative-syntax.html"
>endfor</A
>
      </TD
><TD
>&#13;       <A
HREF="control-structures.alternative-syntax.html"
>endforeach</A
>
      </TD
><TD
>&#13;       <A
HREF="control-structures.alternative-syntax.html"
>endif</A
>
      </TD
></TR
><TR
><TD
>&#13;       <A
HREF="control-structures.alternative-syntax.html"
>endswitch</A
>
      </TD
><TD
>&#13;       <A
HREF="control-structures.alternative-syntax.html"
>endwhile</A
>
      </TD
><TD
>&#13;       <A
HREF="function.eval.html"
><B
CLASS="function"
>eval()</B
></A
>
      </TD
><TD
>&#13;       <A
HREF="function.exit.html"
><B
CLASS="function"
>exit()</B
></A
>
      </TD
><TD
>&#13;       <A
HREF="language.oop.html#keyword.class"
>extends</A
>
      </TD
></TR
><TR
><TD
>&#13;       <A
HREF="control-structures.for.html"
>for</A
>
      </TD
><TD
>&#13;       <A
HREF="control-structures.foreach.html"
>foreach</A
>
      </TD
><TD
>&#13;       <A
HREF="language.functions.html#functions.user-defined"
>function</A
>
      </TD
><TD
>&#13;       <A
HREF="language.variables.scope.html"
>global</A
>
      </TD
><TD
>&#13;       <A
HREF="language.control-structures.html#control-structures.if"
>if</A
>
      </TD
></TR
><TR
><TD
>&#13;       <A
HREF="function.include.html"
><B
CLASS="function"
>include()</B
></A
>
      </TD
><TD
>&#13;       <A
HREF="function.include-once.html"
><B
CLASS="function"
>include_once()</B
></A
>
      </TD
><TD
>&#13;       <A
HREF="function.isset.html"
><B
CLASS="function"
>isset()</B
></A
>
      </TD
><TD
>&#13;       <A
HREF="function.list.html"
><B
CLASS="function"
>list()</B
></A
>
      </TD
><TD
>&#13;       <A
HREF="language.oop.html#keyword.class"
>new</A
>
      </TD
></TR
><TR
><TD
>&#13;       <A
HREF="function.print.html"
><B
CLASS="function"
>print()</B
></A
>
      </TD
><TD
>&#13;       <A
HREF="function.require.html"
><B
CLASS="function"
>require()</B
></A
>
      </TD
><TD
>&#13;       <A
HREF="function.require-once.html"
><B
CLASS="function"
>require_once()</B
></A
>
      </TD
><TD
>&#13;       <A
HREF="function.return.html"
><B
CLASS="function"
>return()</B
></A
>
      </TD
><TD
>&#13;       <A
HREF="language.variables.scope.html"
>static</A
>
      </TD
></TR
><TR
><TD
>&#13;       <A
HREF="control-structures.switch.html"
>switch</A
>
      </TD
><TD
>&#13;       <A
HREF="function.unset.html"
><B
CLASS="function"
>unset()</B
></A
>
      </TD
><TD
>&#13;       use
      </TD
><TD
>&#13;       <A
HREF="language.oop.html#keyword.class"
>var</A
>
      </TD
><TD
>&#13;       <A
HREF="control-structures.while.html"
>while</A
>
      </TD
></TR
><TR
><TD
>&#13;       <A
HREF="language.constants.predefined.html"
>__FUNCTION__</A
>
      </TD
><TD
>&#13;       <A
HREF="language.constants.predefined.html"
>__CLASS__</A
>
      </TD
><TD
>&#13;       <A
HREF="language.constants.predefined.html"
>__METHOD__</A
>
      </TD
><TD
>&#13;       <A
HREF="language.oop5.final.html"
>final</A
> (PHP 5)
      </TD
><TD
>&#13;       <A
HREF="reserved.classes.html#reserved.classes.php5"
>php_user_filter</A
> (PHP 5)
      </TD
></TR
><TR
><TD
>&#13;       <A
HREF="language.oop5.interfaces.html"
>interface</A
> (PHP 5)
      </TD
><TD
>&#13;       <A
HREF="language.oop5.interfaces.html"
>implements</A
> (PHP 5)
      </TD
><TD
>&#13;       <A
HREF="language.oop5.basic.html"
>extends</A
>
      </TD
><TD
>&#13;       <A
HREF="language.oop5.visibility.html"
>public</A
> (PHP 5)
      </TD
><TD
>&#13;       <A
HREF="language.oop5.visibility.html"
>private</A
> (PHP 5)
      </TD
></TR
><TR
><TD
>&#13;       <A
HREF="language.oop5.visibility.html"
>protected</A
> (PHP 5)
      </TD
><TD
>&#13;       <A
HREF="language.oop5.abstract.html"
>abstract</A
> (PHP 5)
      </TD
><TD
>&#13;       <A
HREF="language.oop5.cloning.html"
>clone</A
> (PHP 5)
      </TD
><TD
>&#13;       <A
HREF="language.exceptions.html"
>try</A
> (PHP 5)
      </TD
><TD
>&#13;       <A
HREF="language.exceptions.html"
>catch</A
> (PHP 5)
      </TD
></TR
><TR
><TD
>&#13;       <A
HREF="language.exceptions.html"
>throw</A
> (PHP 5)
      </TD
><TD
>&#13;       <A
HREF="migration.old-function.html"
>cfunction</A
> (PHP 4 only)
      </TD
><TD
>&#13;       <A
HREF="migration.old-function.html"
>old_function</A
> (PHP 4 only)
      </TD
><TD
>&#13;       <A
HREF="language.oop.html#keyword.class"
>this</A
> (PHP 5 only)
      </TD
><TD
>&nbsp;</TD
></TR
></TBODY
></TABLE
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="aliases.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="reserved.variables.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>函数别名列表</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="appendices.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>预定义变量</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>