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

readline_read_history

PHP function Edit on GitHub ✎

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

Reads the history

Description

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

This function reads a command history from a file.

Parameters

filename

Path to the filename containing the command history.

Return Values

Success

Changelog

VersionDescription
8.0.0filename is nullable now.

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