userlandnaming.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 52 行

HTML
52
字号
<!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 http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="tokens.html">List of Parser Tokens</a></div> <div class="next" style="text-align: right; float: right;"><a href="userlandnaming.rules.html">Rules</a></div> <div class="up"><a href="appendices.html">Appendices</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1>Userland Naming Guide</h1><h2>Table of Contents</h2><ul class="chunklist chunklist_appendix"><li><a href="userlandnaming.rules.html">Rules</a></li><li><a href="userlandnaming.tips.html">Tips</a></li></ul> <p class="para">  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 id="userlandnaming.globalnamespace" class="section">  <h2 class="title">Global Namespace</h2>  <p class="para">   Here is an overview of code constructs that go into the global namespace:  </p>  <ul class="itemizedlist">   <li class="listitem"><p class="para">functions</p></li>   <li class="listitem"><p class="para">classes</p></li>   <li class="listitem"><p class="para">interfaces</p></li>   <li class="listitem"><p class="para">constants (not class constants)</p></li>   <li class="listitem">    <p class="para">variables defined outside of functions/methods</p>   </li>  </ul> </div>  </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="tokens.html">List of Parser Tokens</a></div> <div class="next" style="text-align: right; float: right;"><a href="userlandnaming.rules.html">Rules</a></div> <div class="up"><a href="appendices.html">Appendices</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?