HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

readline_read_history

Description

The readline_read_history of Readline for PHP 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/1.txt";

$return = readline_read_history($filename);

var_export($return);
true