readline_add_history
Description
The readline_add_history of Readline for PHP adds a line to the history.
Syntax
readline_add_history(
string $prompt
): boolParameters
prompt
The line to be added in the history.
Return
Returns true on success or false on failure.
Examples
1 · prompt
<? $prompt = readline(); $return = readline_add_history($prompt); var_export($return); readline_clear_history();
true