mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-19 06:16:58 +08:00
87 lines
3.5 KiB
HTML
87 lines
3.5 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>Returns the current process title</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.cli-get-process-title" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">cli_get_process_title</h1>
|
|
<p class="verinfo">(PHP 5 >= 5.5.0, PHP 7)</p><p class="refpurpose"><span class="refname">cli_get_process_title</span> — <span class="dc-title">Returns the current process title</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.cli-get-process-title-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>cli_get_process_title</strong></span>
|
|
( <span class="methodparam">void</span>
|
|
) : <span class="type">string</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
Returns the current process title, as set by
|
|
<span class="function"><a href="cli_set_process_title.html" class="function">cli_set_process_title()</a></span>. Note that this may not exactly
|
|
match what is shown in <strong class="command">ps</strong> or <strong class="command">top</strong>,
|
|
depending on your operating system.
|
|
</p>
|
|
|
|
<p class="para">
|
|
This function is available only in
|
|
<a href="features.commandline.html" class="link">CLI</a> mode.
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.cli-get-process-title-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<p class="para">此函数没有参数。</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.cli-get-process-title-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
Return a string with the current process title or <strong><code>NULL</code></strong> on error.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 errors" id="refsect1-function.cli-get-process-title-errors">
|
|
<h3 class="title">错误/异常</h3>
|
|
|
|
<p class="para">
|
|
An <strong><code>E_WARNING</code></strong> will be generated if the operating system
|
|
is unsupported.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 examples" id="refsect1-function.cli-get-process-title-examples">
|
|
<h3 class="title">范例</h3>
|
|
<p class="para">
|
|
<div class="example" id="example-489">
|
|
<p><strong>Example #1 <span class="function"><strong>cli_get_process_title()</strong></span> example</strong></p>
|
|
<div class="example-contents">
|
|
<div class="phpcode"><pre><span style="color: #000000">
|
|
<span style="color: #0000BB"><?php<br /></span><span style="color: #007700">echo </span><span style="color: #DD0000">"Process title: " </span><span style="color: #007700">. </span><span style="color: #0000BB">cli_get_process_title</span><span style="color: #007700">() . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?></span>
|
|
</span>
|
|
</pre></div>
|
|
</div>
|
|
|
|
</div>
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 seealso" id="refsect1-function.cli-get-process-title-seealso">
|
|
<h3 class="title">参见</h3>
|
|
<p class="para">
|
|
<ul class="simplelist">
|
|
<li class="member"><span class="function"><a href="cli_set_process_title.html" class="function" rel="rdfs-seeAlso">cli_set_process_title()</a> - Sets the process title</span></li>
|
|
</ul>
|
|
</p>
|
|
</div>
|
|
|
|
</div></div></div></body></html> |