Sophie

Sophie

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

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
>Userland Naming Guide</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="tokens.html"><LINK
REL="NEXT"
TITLE="Rules"
HREF="userlandnaming.rules.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="tokens.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="userlandnaming.rules.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="appendix"
><H1
><A
NAME="userlandnaming"
>附录 S. Userland Naming Guide</A
></H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>目录</B
></DT
><DT
><A
HREF="userlandnaming.html#userlandnaming.globalnamespace"
>Global Namespace</A
></DT
><DT
><A
HREF="userlandnaming.rules.html"
>Rules</A
></DT
><DT
><A
HREF="userlandnaming.tips.html"
>Tips</A
></DT
></DL
></DIV
><P
>&#13;  The following is a guide for how to best choose names for identifiers
  in userland PHP code. When choosing names for any code that creates symbols
  in the global namespace, it is important to take into account the following
  guidelines to prevent future versions of PHP from clashing with your
  symbols.
 </P
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="userlandnaming.globalnamespace"
>Global Namespace</A
></H1
><P
>&#13;   Here is an overview of code constructs that go into the global namespace:
  </P
><P
></P
><UL
><LI
><P
>functions</P
></LI
><LI
><P
>classes</P
></LI
><LI
><P
>interfaces</P
></LI
><LI
><P
>constants (not class constants)</P
></LI
><LI
><P
>variables defined outside of functions/methods</P
></LI
></UL
></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="tokens.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="userlandnaming.rules.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"
>Rules</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>