readline_info

PHP 4, PHP 5, PHP 7, PHP 8
readline_info - Gets/sets various internal readline variables
Manual

readline_info( [string|null$var_name = null], [int|string|bool|null$value = null] ): mixed

Gets or sets various internal readline variables.

Parameters

var_name

A variable name.

value

If provided, this will be the new value of the setting.

Return Values

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.

If called with one or two parameters, the old value is returned.

Changelog

Version Description
8.0.0 var_name and value are nullable now.

Function readline_info:

  • Manual

GNU Readline Functions

Most used PHP functions