<!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>Gets/sets various internal readline variables</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.readline-completion-function.html">readline_completion_function</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.readline-list-history.html">readline_list_history</a></div> <div class="up"><a href="ref.readline.html">Readline Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.readline-info" class="refentry"> <div class="refnamediv"> <h1 class="refname">readline_info</h1> <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">readline_info</span> — <span class="dc-title">Gets/sets various internal readline variables</span></p> </div> <div class="refsect1 description" id="refsect1-function.readline-info-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><strong>readline_info</strong></span> ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$varname</code></span> [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$newvalue</code></span> ]] )</div> <p class="para rdfs-comment"> Gets or sets various internal readline variables. </p> </div> <div class="refsect1 parameters" id="refsect1-function.readline-info-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">varname</code></em></span> <dd> <p class="para"> A variable name. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">newvalue</code></em></span> <dd> <p class="para"> If provided, this will be the new value of the setting. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.readline-info-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> If called with no parameters, this function returns an array of values for all the setting readline uses. The elements will be indexed by the following values: done, end, erase_empty_line, library_version, line_buffer, mark, pending_input, point, prompt, readline_name, and terminal_name. </p> <p class="para"> If called with one or two parameters, the old value is returned. </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.readline-completion-function.html">readline_completion_function</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.readline-list-history.html">readline_list_history</a></div> <div class="up"><a href="ref.readline.html">Readline Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>