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

readline_add_history

Description

The readline_add_history of Readline for PHP adds a line to the history.

Syntax

readline_add_history(string $prompt): bool

Parameters

prompt

The line to be added in the history.

Return

Returns true on success or false on failure.

Examples

1

<?

$prompt = readline();

$return = readline_add_history($prompt);

var_export($return);

readline_clear_history();
true