Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<readline_on_new_linereadline_redisplay>
^Readline FunctionsLast updated: Mon, 26 Oct 2026

readline_read_history

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

readline_read_history — Reads the history

Description

function readline_read_history(?string $filename = null): bool

This function reads a command history from a file.

Parameters

filename

Path to the filename containing the command history.

Return Values

Returns true on success or false on failure.

Changelog

Version Description
8.0.0 filename is nullable now.

<readline_on_new_linereadline_redisplay>
^Readline FunctionsLast updated: Mon, 26 Oct 2026