readline_read_history

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

readline_read_history读取历史

说明

readline_read_history(?string $filename = null): bool

这个函数从文件中读取命令历史。

参数

filename

包含命令行历史的文件路径。

返回值

成功时返回 true, 或者在失败时返回 false

更新日志

版本 说明
8.0.0 filename 现在可为 null。
add a note add a note

User Contributed Notes 1 note

up
-2
Anonymous
13 years ago
Note that the first line in the history file must contain the string: _HiStOrY_V2_

Else it wont work.
To Top