<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.readline.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ru',
  ),
  'this' => 
  array (
    0 => 'function.readline-info.php',
    1 => 'readline_info',
    2 => 'Считывает или устанавливает внутренние переменные модуля readline',
  ),
  'up' => 
  array (
    0 => 'ref.readline.php',
    1 => 'Функции Readline',
  ),
  'prev' => 
  array (
    0 => 'function.readline-completion-function.php',
    1 => 'readline_completion_function',
  ),
  'next' => 
  array (
    0 => 'function.readline-list-history.php',
    1 => 'readline_list_history',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ru',
    'path' => 'reference/readline/functions/readline-info.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.readline-info" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">readline_info</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">readline_info</span> &mdash; <span class="dc-title">Считывает или устанавливает внутренние переменные модуля readline</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.readline-info-description">
  <h3 class="title">Описание</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>readline_info</strong></span>(<span class="methodparam"><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> <code class="parameter">$var_name</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>|<span class="type"><a href="language.types.null.php" class="type null">null</a></span></span> <code class="parameter">$value</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>

  <p class="simpara">
   Функция считывает или устанавливает внутренние переменные модуля readline.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.readline-info-parameters">
  <h3 class="title">Список параметров</h3>
  <dl>
   
    <dt><code class="parameter">var_name</code></dt>
    <dd>
     <span class="simpara">
      Название переменной.
     </span>
    </dd>
   
   
    <dt><code class="parameter">value</code></dt>
    <dd>
     <span class="simpara">
      При установке этого параметра функция присвоит настройке новое значение.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.readline-info-returnvalues">
  <h3 class="title">Возвращаемые значения</h3>
  <p class="simpara">
   При вызове без аргументов функция возвращает массив значений,
   которые содержатся в настройках модуля readline.
   Элементы массива индексируются следующими ключами:
   <code class="literal">done</code>, <code class="literal">end</code>, <code class="literal">erase_empty_line</code>,
   <code class="literal">library_version</code>, <code class="literal">line_buffer</code>, <code class="literal">mark</code>,
   <code class="literal">pending_input</code>, <code class="literal">point</code>, <code class="literal">prompt</code>,
   <code class="literal">readline_name</code> и <code class="literal">terminal_name</code>.
   Массив (<span class="type"><a href="language.types.array.php" class="type array">array</a></span>) будет содержать только те элементы, которые поддерживает библиотека,
   с которой собрали модуль readline.
  </p>
  <p class="simpara">
   При вызове с одним или двумя аргументами функция возвращает старое, или текущее,
   значение переменной.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.readline-info-changelog">
  <h3 class="title">Список изменений</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Версия</th>
      <th>Описание</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       Параметры <code class="parameter">var_name</code> и <code class="parameter">value</code> теперь принимают значение null.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>

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