Note that the first line in the history file must contain the string: _HiStOrY_V2_
Else it wont work.
PHP - Manual: readline_read_history
2025-02-27
(PHP 4, PHP 5, PHP 7, PHP 8)
readline_read_history — 读取历史
filename
包含命令行历史的文件路径。
版本 | 说明 |
---|---|
8.0.0 |
filename 现在可为 null。
|
官方地址:https://www.php.net/manual/en/function.readline-read-history.php