⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.phpcredits.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Prints out the credits for PHP</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="function.php-uname.html">php_uname</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.phpinfo.html">phpinfo</a></div> <div class="up"><a href="ref.info.html">PHP Options/Info Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.phpcredits" class="refentry"> <div class="refnamediv">  <h1 class="refname">phpcredits</h1>  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">phpcredits</span> &mdash; <span class="dc-title">Prints out the credits for PHP</span></p> </div>  <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">bool</span> <span class="methodname"><b><b>phpcredits</b></b></span>    ([ <span class="methodparam"><span class="type">int</span> <tt class="parameter">$flag</tt></span>  ] )</div>  <p class="para rdfs-comment">   This function prints out the credits listing the PHP developers,   modules, etc. It generates the appropriate HTML codes to insert   the information in a page.   </p>    </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">flag</tt></i></span>     <dd>      <p class="para">       To generate a custom credits page, you may want to use the       <i><tt class="parameter">flag</tt></i> parameter. <i><tt class="parameter">flag</tt></i> is       optional, and it defaults to <b><tt>CREDITS_ALL</tt></b>.      </p>      <p class="para">       <table border="5">        <caption><b>Pre-defined <b>phpcredits()</b> flags</b></caption>        <colgroup>         <thead valign="middle">          <tr valign="middle">           <th colspan="1">name</th>           <th colspan="1">description</th>          </tr>         </thead>         <tbody valign="middle" class="tbody">          <tr valign="middle">           <td colspan="1" rowspan="1" align="left">CREDITS_ALL</td>           <td colspan="1" rowspan="1" align="left">            All the credits, equivalent to using: CREDITS_DOCS +            CREDITS_GENERAL + CREDITS_GROUP + CREDITS_MODULES +            CREDITS_FULLPAGE. It generates a complete stand-alone HTML            page with the appropriate tags.           </td>          </tr>          <tr valign="middle">           <td colspan="1" rowspan="1" align="left">CREDITS_DOCS</td>           <td colspan="1" rowspan="1" align="left">The credits for the documentation team</td>          </tr>          <tr valign="middle">           <td colspan="1" rowspan="1" align="left">CREDITS_FULLPAGE</td>           <td colspan="1" rowspan="1" align="left">            Usually used in combination with the other flags.  Indicates            that a complete stand-alone HTML page needs to be            printed including the information indicated by the other            flags.           </td>          </tr>          <tr valign="middle">           <td colspan="1" rowspan="1" align="left">CREDITS_GENERAL</td>           <td colspan="1" rowspan="1" align="left">            General credits: Language design and concept, PHP 4.0            authors and SAPI module.           </td>          </tr>          <tr valign="middle">           <td colspan="1" rowspan="1" align="left">CREDITS_GROUP</td>           <td colspan="1" rowspan="1" align="left">A list of the core developers</td>          </tr>          <tr valign="middle">           <td colspan="1" rowspan="1" align="left">CREDITS_MODULES</td>           <td colspan="1" rowspan="1" align="left">            A list of the extension modules for PHP, and their authors           </td>          </tr>          <tr valign="middle">           <td colspan="1" rowspan="1" align="left">CREDITS_SAPI</td>           <td colspan="1" rowspan="1" align="left">            A list of the server API modules for PHP, and their authors           </td>          </tr>         </tbody>        </colgroup>       </table>      </p>     </dd>    </dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure.  </p> </div> <div class="refsect1 examples">  <h3 class="title">Examples</h3>  <p class="para">   <div class="example">    <p><b>Example #1 Prints the general credits</b></p>    <div class="example-contents"><div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />phpcredits</span><span style="color: #007700">(</span><span style="color: #0000BB">CREDITS_GENERAL</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>    </div>   </div>  </p>  <p class="para">   <div class="example">    <p><b>Example #2 Prints the core developers and the documentation group</b></p>    <div class="example-contents"><div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />phpcredits</span><span style="color: #007700">(</span><span style="color: #0000BB">CREDITS_GROUP&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">CREDITS_DOCS&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">CREDITS_FULLPAGE</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>    </div>   </div>  </p>  <p class="para">   <div class="example">    <p><b>Example #3 Printing all the credits</b></p>    <div class="example-contents"><div class="phpcode"><code><span style="color: #000000">&lt;html&gt;<br />&nbsp;&lt;head&gt;<br />&nbsp;&nbsp;&lt;title&gt;My&nbsp;credits&nbsp;page&lt;/title&gt;<br />&nbsp;&lt;/head&gt;<br />&nbsp;&lt;body&gt;<br /><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">//&nbsp;some&nbsp;code&nbsp;of&nbsp;your&nbsp;own<br /></span><span style="color: #0000BB">phpcredits</span><span style="color: #007700">(</span><span style="color: #0000BB">CREDITS_ALL&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">CREDITS_FULLPAGE</span><span style="color: #007700">);<br /></span><span style="color: #FF8000">//&nbsp;some&nbsp;more&nbsp;code<br /></span><span style="color: #0000BB">?&gt;<br /></span>&nbsp;&lt;/body&gt;<br />&lt;/html&gt;</span></code></div>    </div>   </div>  </p> </div> <div class="refsect1 seealso">  <h3 class="title">See Also</h3>  <p class="para">   <ul class="simplelist">    <li class="member"><a href="function.phpversion.html" class="function" rel="rdfs-seeAlso">phpversion()</a></li>    <li class="member"><a href="function.php-logo-guid.html" class="function" rel="rdfs-seeAlso">php_logo_guid()</a></li>    <li class="member"><a href="function.phpinfo.html" class="function" rel="rdfs-seeAlso">phpinfo()</a></li>   </ul>  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.php-uname.html">php_uname</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.phpinfo.html">phpinfo</a></div> <div class="up"><a href="ref.info.html">PHP Options/Info Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

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