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_inforeadline_on_new_line>
^Readline FunctionsLast updated: Mon, 26 Oct 2026

readline_list_history

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

readline_list_history — Lists the history

Description

function readline_list_history(): array

Gets the entire command line history.

This function is only available if the readline library PHP was built against provides history listing. This is always the case with GNU Readline and on Windows.

Parameters

This function has no parameters.

Return Values

Returns an array of the entire command line history. The elements are indexed by integers starting at zero.


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