readline_read_history

Reads the history

Syntax

readline_read_history(?string $filename = null): bool

Parameters

filename

Path to the filename containing the command history.

Return

Returns true on success or false on failure.

Examples

1 · void

<?

$return = readline_read_history();

var_export($return);

?>
false

2 · filename

<?

$filename = $_SERVER["DOCUMENT_ROOT"] . "/assets/txt/file.txt";

$return = readline_read_history($filename);

var_export($return);

?>
true

readline

readline_add_history

readline_callback_handler_install

readline_callback_handler_remove

readline_callback_read_char

readline_clear_history

readline_completion_function

readline_info

readline_list_history

readline_on_new_line

readline_redisplay

readline_write_history

PHP

Home Menu