mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
189 lines
7.1 KiB
HTML
189 lines
7.1 KiB
HTML
<!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>打印 PHP 贡献者名单</title>
|
||
</head>
|
||
<body class="docs"><div id="layout">
|
||
<div id="layout-content"><div id="function.phpcredits" class="refentry">
|
||
<div class="refnamediv">
|
||
<h1 class="refname">phpcredits</h1>
|
||
<p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">phpcredits</span> — <span class="dc-title">打印 PHP 贡献者名单</span></p>
|
||
|
||
</div>
|
||
|
||
<div class="refsect1 description" id="refsect1-function.phpcredits-description">
|
||
<h3 class="title">说明</h3>
|
||
<div class="methodsynopsis dc-description">
|
||
<span class="methodname"><strong>phpcredits</strong></span>
|
||
([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$flag</code><span class="initializer"> = CREDITS_ALL</span></span>
|
||
] ) : <span class="type">bool</span></div>
|
||
|
||
<p class="para rdfs-comment">
|
||
这个函数打印出了 PHP 开发者、模块等贡献者名单。
|
||
它生成了合适、可嵌入信息到页面中的 HTML 代码。
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 parameters" id="refsect1-function.phpcredits-parameters">
|
||
<h3 class="title">参数</h3>
|
||
<p class="para">
|
||
<dl>
|
||
|
||
|
||
<dt>
|
||
<code class="parameter">flag</code></dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
生成自定义的贡献者页面,你也许想要使用 <code class="parameter">flag</code> 参数。
|
||
</p>
|
||
<p class="para">
|
||
<table class="doctable table">
|
||
<caption><strong>预定义的 <span class="function"><strong>phpcredits()</strong></span> flags</strong></caption>
|
||
|
||
<thead>
|
||
<tr>
|
||
<th>名称</th>
|
||
<th>描述</th>
|
||
</tr>
|
||
|
||
</thead>
|
||
|
||
<tbody class="tbody">
|
||
<tr>
|
||
<td>CREDITS_ALL</td>
|
||
<td>
|
||
所有贡献者,等同于使用: <strong><code>CREDITS_DOCS</code></strong> +
|
||
<strong><code>CREDITS_GENERAL</code></strong> + <strong><code>CREDITS_GROUP</code></strong> +
|
||
<strong><code>CREDITS_MODULES</code></strong> + <strong><code>CREDITS_FULLPAGE</code></strong>。
|
||
它以适当的标签产生了完整独立的 HTML 页面。
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>CREDITS_DOCS</td>
|
||
<td>文档组贡献名单</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>CREDITS_FULLPAGE</td>
|
||
<td>
|
||
常用于和其他标志进行组合。
|
||
表示需要打印包含其他标志表示信息的独立 HTML 页面。
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>CREDITS_GENERAL</td>
|
||
<td>
|
||
普遍名单:语言设计与理念、PHP作者以及 SAPI 模块。
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>CREDITS_GROUP</td>
|
||
<td>核心开发者名单</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>CREDITS_MODULES</td>
|
||
<td>
|
||
PHP 扩展模块以及它们的作者的清单
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>CREDITS_SAPI</td>
|
||
<td>
|
||
PHP 的服务器 API 模块以及他们的作者的清单
|
||
</td>
|
||
</tr>
|
||
|
||
</tbody>
|
||
|
||
</table>
|
||
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
</dl>
|
||
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 returnvalues" id="refsect1-function.phpcredits-returnvalues">
|
||
<h3 class="title">返回值</h3>
|
||
<p class="para">
|
||
成功时返回 <strong><code>TRUE</code></strong>, 或者在失败时返回 <strong><code>FALSE</code></strong>。
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 examples" id="refsect1-function.phpcredits-examples">
|
||
<h3 class="title">范例</h3>
|
||
<p class="para">
|
||
<div class="example" id="example-524">
|
||
<p><strong>Example #1 打印普遍名单</strong></p>
|
||
<div class="example-contents">
|
||
<div class="phpcode"><pre><span style="color: #000000">
|
||
<span style="color: #0000BB"><?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">?></span>
|
||
</span>
|
||
</pre></div>
|
||
</div>
|
||
|
||
</div>
|
||
</p>
|
||
<p class="para">
|
||
<div class="example" id="example-525">
|
||
<p><strong>Example #2 打印核心开发者和文档组</strong></p>
|
||
<div class="example-contents">
|
||
<div class="phpcode"><pre><span style="color: #000000">
|
||
<span style="color: #0000BB"><?php<br />phpcredits</span><span style="color: #007700">(</span><span style="color: #0000BB">CREDITS_GROUP </span><span style="color: #007700">| </span><span style="color: #0000BB">CREDITS_DOCS </span><span style="color: #007700">| </span><span style="color: #0000BB">CREDITS_FULLPAGE</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?></span>
|
||
</span>
|
||
</pre></div>
|
||
</div>
|
||
|
||
</div>
|
||
</p>
|
||
<p class="para">
|
||
<div class="example" id="example-526">
|
||
<p><strong>Example #3 打印所有贡献者</strong></p>
|
||
<div class="example-contents">
|
||
<div class="phpcode"><pre><span style="color: #000000">
|
||
<html><br /> <head><br /> <title>My credits page</title><br /> </head><br /> <body><br /><span style="color: #0000BB"><?php<br /></span><span style="color: #FF8000">// 一些你自己的代码<br /></span><span style="color: #0000BB">phpcredits</span><span style="color: #007700">(</span><span style="color: #0000BB">CREDITS_ALL </span><span style="color: #007700">- </span><span style="color: #0000BB">CREDITS_FULLPAGE</span><span style="color: #007700">);<br /></span><span style="color: #FF8000">// 一些其他的代码<br /></span><span style="color: #0000BB">?><br /></span> </body><br /></html></span>
|
||
</pre></div>
|
||
</div>
|
||
|
||
</div>
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 notes" id="refsect1-function.phpcredits-notes">
|
||
<h3 class="title">注释</h3>
|
||
<blockquote class="note"><p><strong class="note">Note</strong>:
|
||
<p class="para">
|
||
在 CLI 模式下 <span class="function"><strong>phpcredits()</strong></span> 输出明文而不是 HTML。
|
||
</p>
|
||
</p></blockquote>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 seealso" id="refsect1-function.phpcredits-seealso">
|
||
<h3 class="title">参见</h3>
|
||
<p class="para">
|
||
<ul class="simplelist">
|
||
<li class="member"><span class="function"><a href="phpversion.html" class="function" rel="rdfs-seeAlso">phpversion()</a> - 获取当前的PHP版本</span></li>
|
||
<li class="member"><span class="function"><a href="php_logo_guid.html" class="function" rel="rdfs-seeAlso">php_logo_guid()</a> - 获取 logo 的 guid</span></li>
|
||
<li class="member"><span class="function"><a href="phpinfo.html" class="function" rel="rdfs-seeAlso">phpinfo()</a> - 输出关于 PHP 配置的信息</span></li>
|
||
</ul>
|
||
</p>
|
||
</div>
|
||
|
||
|
||
</div></div></div></body></html> |