readline_write_history
Description
The readline_write_history of Readline for PHP writes the history.
Syntax
readline_write_history( ?string $filename = null ): bool
Parameters
filename
Path to the saved file.
Return
Returns true on success or false on failure.
Examples
1 · void
<? $return = readline_write_history(); var_export($return); ?>
false
2 · filename
<? $filename = $_SERVER["DOCUMENT_ROOT"] . "/assets/txt/1.txt"; $return = readline_write_history($filename); var_export($return); ?>
true