php / 8.1.5 / function.readline-write-history.html /

readline_write_history

(PHP 4, PHP 5, PHP 7, PHP 8)

readline_write_historyWrites the history

Description

readline_write_history(?string $filename = null): bool

This function writes the command history to a file.

Parameters

filename

Path to the saved file.

Return Values

Returns true on success or false on failure.

Changelog

Version Description
8.0.0 filename is nullable now.

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.readline-write-history.php