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

readline_list_history

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

readline_list_historyLists the history

Description

readline_list_history(): array

Gets the entire command line history.

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.

© 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-list-history.php