Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 12497

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Tips</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="userlandnaming.rules.html">Rules</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="about.html">About the manual</a></div>
 <div class="up"><a href="userlandnaming.html">Userland Naming Guide</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="userlandnaming.tips" class="section">
  <h2 class="title">Tips</h2>
  <p class="para">
   In order to write future-proof code, it is recommended that you prefix
   (or suffix) anything that goes into the global namespace with an uncommon
   3-4 letter prefix (or suffix) separated with an underscore. It is
   recommended that in order to prevent namespace clashes with other userland
   code that projects research existing prefixes (or suffixes) used in other
   projects and advertise their chosen prefix (or suffix) appropriately.
   Examples:
  </p>

  <ul class="itemizedlist">
   <li class="listitem"><p class="para">MyPx_someFunc()</p></li>
   <li class="listitem"><p class="para">Foo_Date</p></li>
   <li class="listitem"><p class="para">$asdf_dbh</p></li>
  </ul>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="userlandnaming.rules.html">Rules</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="about.html">About the manual</a></div>
 <div class="up"><a href="userlandnaming.html">Userland Naming Guide</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>