php8.5
Home/ Manual/ readline / functions/ readline_write_history

readline_write_history

PHP function Edit on GitHub ✎

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

Writes the history

Description

readline_write_history(string|null $filename = null): bool

This function writes the command history to a file.

Parameters

filename

Path to the saved file.

Return Values

Success

Changelog

VersionDescription
8.0.0filename is nullable now.

Source: reference/readline/functions/readline-write-history.xml · from the official PHP manual (php/doc-en)