<HTML ><HEAD ><TITLE >List of Reserved Words</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="Appendixes" HREF="appendixes.html"><LINK REL="PREVIOUS" TITLE="List of Function Aliases" HREF="aliases.html"><LINK REL="NEXT" TITLE="Predefined Variables" HREF="reserved.variables.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></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 Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="aliases.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="reserved.variables.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="appendix" ><H1 ><A NAME="reserved" >Appendix G. List of Reserved Words</A ></H1 ><DIV CLASS="TOC" ><DL ><DT ><B >Table of Contents</B ></DT ><DT ><A HREF="reserved.html#reserved.keywords" >List of Keywords</A ></DT ><DT ><A HREF="reserved.variables.html" >Predefined Variables</A ></DT ><DT ><A HREF="reserved.classes.html" >Predefined Classes</A ></DT ><DT ><A HREF="reserved.constants.html" >Predefined Constants</A ></DT ></DL ></DIV ><P > The following is a listing of predefined identifiers in PHP. None of the identifiers listed here should be used as identifiers in a your scripts. These lists include keywords and predefined variable, constant, and class names. These lists are neither exhaustive or complete. </P ><DIV CLASS="sect1" ><H1 CLASS="sect1" ><A NAME="reserved.keywords" ></A >List of Keywords</H1 ><P > These words have special meaning in PHP. Some of them represent things which look like functions, some look like constants, and so on--but they're not, really: they are language constructs. You cannot use any of the following words as constants, class names, or function names. Using them as variable names is generally OK, but could lead to confusion. </P ><DIV CLASS="table" ><A NAME="AEN106610" ></A ><P ><B >Table G-1. PHP Keywords</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><TBODY ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="language.operators.logical.html" >and</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="language.operators.logical.html" >or</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="language.operators.logical.html" >xor</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > __FILE__ </TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" > __LINE__ </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="function.array.html" ><B CLASS="function" >array()</B ></A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.foreach.html" >as</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.break.html" >break</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.switch.html" >case</A > </TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="functions.old-syntax.html" >cfunction</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="language.oop.html#keyword.class" >class</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > const </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.continue.html" >continue</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.declare.html" >declare</A > </TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.switch.html" >default</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="function.die.html" ><B CLASS="function" >die()</B ></A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.do.while.html" >do</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="function.echo.html" ><B CLASS="function" >echo()</B ></A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.else.html" >else</A > </TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.elseif.html" >elseif</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="function.empty.html" ><B CLASS="function" >empty()</B ></A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.declare.html" >enddeclare</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.alternative-syntax.html" >endfor</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.alternative-syntax.html" >endforeach</A > </TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.alternative-syntax.html" >endif</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.alternative-syntax.html" >endswitch</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.alternative-syntax.html" >endwhile</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="function.eval.html" >eval</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="function.exit.html" ><B CLASS="function" >exit()</B ></A > </TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="language.oop.html#keyword.class" >extends</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.for.html" >for</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.foreach.html" >foreach</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="functions.html#functions.user-defined" >function</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="language.variables.scope.html" >global</A > </TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.html#control-structures.if" >if</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="function.include.html" ><B CLASS="function" >include()</B ></A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="function.include-once.html" ><B CLASS="function" >include_once()</B ></A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="function.isset.html" ><B CLASS="function" >isset()</B ></A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="function.list.html" ><B CLASS="function" >list()</B ></A > </TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="language.oop.html#keyword.class" >new</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="functions.old-syntax.html" >old_function</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="function.print.html" ><B CLASS="function" >print()</B ></A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="function.require.html" ><B CLASS="function" >require()</B ></A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="function.require-once.html" ><B CLASS="function" >require_once()</B ></A > </TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="function.return.html" ><B CLASS="function" >return()</B ></A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="language.variables.scope.html" >static</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.switch.html" >switch</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="function.unset.html" ><B CLASS="function" >unset()</B ></A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > use </TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="language.oop.html#keyword.class" >var</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <A HREF="control-structures.while.html" >while</A > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <TT CLASS="constant" ><B >__FUNCTION__</B ></TT > </TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > <TT CLASS="constant" ><B >__CLASS__</B ></TT > </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" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="reserved.variables.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >List of Function Aliases</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="appendixes.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Predefined Variables</TD ></TR ></TABLE ></DIV ></BODY ></HTML >