mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2026-03-07 14:30:37 +08:00
v0.0.2
This commit is contained in:
@@ -1,119 +1,119 @@
|
||||
<!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>Returns the matched line</title>
|
||||
</head>
|
||||
<body class="docs"><div id="layout">
|
||||
<div id="layout-content"><div id="function.yp-match" class="refentry">
|
||||
<div class="refnamediv">
|
||||
<h1 class="refname">yp_match</h1>
|
||||
<p class="verinfo">(PHP 4, PHP 5 < 5.1.0)</p><p class="refpurpose"><span class="refname">yp_match</span> — <span class="dc-title">Returns the matched line</span></p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="refsect1 description" id="refsect1-function.yp-match-description">
|
||||
<h3 class="title">说明</h3>
|
||||
<div class="methodsynopsis dc-description">
|
||||
<span class="methodname"><strong>yp_match</strong></span>
|
||||
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$domain</code></span>
|
||||
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$map</code></span>
|
||||
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$key</code></span>
|
||||
) : <span class="type">string</span></div>
|
||||
|
||||
<p class="para rdfs-comment">
|
||||
Returns the value associated with the passed <code class="parameter">key</code>
|
||||
out of the specified <code class="parameter">map</code>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 parameters" id="refsect1-function.yp-match-parameters">
|
||||
<h3 class="title">参数</h3>
|
||||
<p class="para">
|
||||
<dl>
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">domain</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The NIS domain name.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">map</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The NIS map.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">key</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
This key must be exact.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 returnvalues" id="refsect1-function.yp-match-returnvalues">
|
||||
<h3 class="title">返回值</h3>
|
||||
<p class="para">
|
||||
Returns the value, or <strong><code>FALSE</code></strong> on errors.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 examples" id="refsect1-function.yp-match-examples">
|
||||
<h3 class="title">范例</h3>
|
||||
<p class="para">
|
||||
<div class="example" id="example-5696">
|
||||
<p><strong>Example #1 Example for NIS match</strong></p>
|
||||
<div class="example-contents">
|
||||
<div class="phpcode"><pre><span style="color: #000000">
|
||||
<span style="color: #0000BB"><?php<br />$entry </span><span style="color: #007700">= </span><span style="color: #0000BB">yp_match</span><span style="color: #007700">(</span><span style="color: #0000BB">$domain</span><span style="color: #007700">, </span><span style="color: #DD0000">"passwd.byname"</span><span style="color: #007700">, </span><span style="color: #DD0000">"joe"</span><span style="color: #007700">);<br />echo </span><span style="color: #DD0000">"Matched entry is: " </span><span style="color: #007700">. </span><span style="color: #0000BB">$entry</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?></span>
|
||||
</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
|
||||
<div class="example-contents"><p>以上例程的输出类似于:</p></div>
|
||||
<div class="example-contents screen">
|
||||
<div class="cdata"><pre>
|
||||
joe:##joe:11111:100:Joe User:/home/j/joe:/usr/local/bin/bash
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 seealso" id="refsect1-function.yp-match-seealso">
|
||||
<h3 class="title">参见</h3>
|
||||
<p class="para">
|
||||
<ul class="simplelist">
|
||||
<li class="member"><span class="function"><a href="yp_get_default_domain.html" class="function" rel="rdfs-seeAlso">yp_get_default_domain()</a> - Fetches the machine's default NIS domain</span></li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<!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>Returns the matched line</title>
|
||||
</head>
|
||||
<body class="docs"><div id="layout">
|
||||
<div id="layout-content"><div id="function.yp-match" class="refentry">
|
||||
<div class="refnamediv">
|
||||
<h1 class="refname">yp_match</h1>
|
||||
<p class="verinfo">(PHP 4, PHP 5 < 5.1.0)</p><p class="refpurpose"><span class="refname">yp_match</span> — <span class="dc-title">Returns the matched line</span></p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="refsect1 description" id="refsect1-function.yp-match-description">
|
||||
<h3 class="title">说明</h3>
|
||||
<div class="methodsynopsis dc-description">
|
||||
<span class="methodname"><strong>yp_match</strong></span>
|
||||
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$domain</code></span>
|
||||
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$map</code></span>
|
||||
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$key</code></span>
|
||||
) : <span class="type">string</span></div>
|
||||
|
||||
<p class="para rdfs-comment">
|
||||
Returns the value associated with the passed <code class="parameter">key</code>
|
||||
out of the specified <code class="parameter">map</code>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 parameters" id="refsect1-function.yp-match-parameters">
|
||||
<h3 class="title">参数</h3>
|
||||
<p class="para">
|
||||
<dl>
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">domain</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The NIS domain name.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">map</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The NIS map.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">key</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
This key must be exact.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 returnvalues" id="refsect1-function.yp-match-returnvalues">
|
||||
<h3 class="title">返回值</h3>
|
||||
<p class="para">
|
||||
Returns the value, or <strong><code>FALSE</code></strong> on errors.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 examples" id="refsect1-function.yp-match-examples">
|
||||
<h3 class="title">范例</h3>
|
||||
<p class="para">
|
||||
<div class="example" id="example-5696">
|
||||
<p><strong>Example #1 Example for NIS match</strong></p>
|
||||
<div class="example-contents">
|
||||
<div class="phpcode"><pre><span style="color: #000000">
|
||||
<span style="color: #0000BB"><?php<br />$entry </span><span style="color: #007700">= </span><span style="color: #0000BB">yp_match</span><span style="color: #007700">(</span><span style="color: #0000BB">$domain</span><span style="color: #007700">, </span><span style="color: #DD0000">"passwd.byname"</span><span style="color: #007700">, </span><span style="color: #DD0000">"joe"</span><span style="color: #007700">);<br />echo </span><span style="color: #DD0000">"Matched entry is: " </span><span style="color: #007700">. </span><span style="color: #0000BB">$entry</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?></span>
|
||||
</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
|
||||
<div class="example-contents"><p>以上例程的输出类似于:</p></div>
|
||||
<div class="example-contents screen">
|
||||
<div class="cdata"><pre>
|
||||
joe:##joe:11111:100:Joe User:/home/j/joe:/usr/local/bin/bash
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 seealso" id="refsect1-function.yp-match-seealso">
|
||||
<h3 class="title">参见</h3>
|
||||
<p class="para">
|
||||
<ul class="simplelist">
|
||||
<li class="member"><span class="function"><a href="yp_get_default_domain.html" class="function" rel="rdfs-seeAlso">yp_get_default_domain()</a> - Fetches the machine's default NIS domain</span></li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
</div></div></div></body></html>
|
||||
Reference in New Issue
Block a user