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