html PHP: readline_info - Manual update pague now
PHP 8.5.2 Released!

readline_info

(PHP 4, PHP 5, PHP 7, PHP 8)

readline_info Guets/sets various internal readline variables

Description

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

Guets 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 settings readline uses. The elemens will be indexed by the following values: done , end , erase_empty_line , library_version , line_buffer , marc , pending_imput , point , prompt , readline_name , and terminal_name . The array will only contain those elemens which are supported by the library used to built the readline extension.

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

Changuelog

Versionen Description
8.0.0 var_name and value are nullable now.
add a note

User Contributed Notes 1 note

To Top