<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.info.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ru',
  ),
  'this' => 
  array (
    0 => 'function.cli-get-process-title.php',
    1 => 'cli_get_process_title',
    2 => 'Возвращает заголовок текущего процесса',
  ),
  'up' => 
  array (
    0 => 'ref.info.php',
    1 => 'Опции PHP/информационные функции',
  ),
  'prev' => 
  array (
    0 => 'function.assert-options.php',
    1 => 'assert_options',
  ),
  'next' => 
  array (
    0 => 'function.cli-set-process-title.php',
    1 => 'cli_set_process_title',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ru',
    'path' => 'reference/info/functions/cli-get-process-title.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<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 &gt;= 5.5.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">cli_get_process_title</span> &mdash; <span class="dc-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="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span></div>

  <p class="para rdfs-comment">
   Возвращает заголовок текущего процесса, установленный
   <span class="function"><a href="function.cli-set-process-title.php" class="function">cli_set_process_title()</a></span>. Обратите внимание, что в зависимости от вашей
   операционной системы, это имя может не совпадать
   с тем, что покажут утилиты <strong class="command">ps</strong> и <strong class="command">top</strong>.
  </p>

  <p class="para">
   Эта функция доступна только в режиме <a href="features.commandline.php" class="link">CLI</a>.
  </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">
   Возвратит строку с заголовком процесса или <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> в случае возникновения ошибки.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.cli-get-process-title-errors">
  <h3 class="title">Ошибки</h3>

  <p class="para">
   Если команда не поддерживается вашей операционной системой, то будет
   вызвана ошибка уровня <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong>.
  </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-1">
    <p><strong>Пример #1 Пример использования <span class="function"><strong>cli_get_process_title()</strong></span></strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">echo </span><span style="color: #DD0000">"Заголовок процесса: " </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">?&gt;</span></span></code></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><span class="function"><a href="function.cli-set-process-title.php" class="function" rel="rdfs-seeAlso">cli_set_process_title()</a> - Устанавливает заголовок процесса</span></li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>